Hi,

I'm currently trying to use JQuery to navigate through OWL (type of
xml) files, it works quite well but I do have a problem with
traversing :
for a fragment like this:
    <rdfs:subClassOf>
      <owl:Restriction>
        <owl:onProperty rdf:resource="#hasColor" />
        <owl:cardinality rdf:datatype="&xsd;nonNegativeInteger">1</
owl:cardinality>
      </owl:Restriction>
    </rdfs:subClassOf>

the regular syntax seems to use the localName of the node (not
namespaced) to fetch:
$('subClassOf') gives results

this goes completely wrong however when adding more complex selectors,
basically child specifications nor attribute specifications seem to
work, I'm currently handling it with xx.filter(function(){....}) but
if anyone knows a solution to the problem please let me know. What
I've tried so far:
$('subClassOf Restriction') no results
$('subClassOf > Restriction') no results
$('subClassOf owl:Restriction') no results
$('subClassOf owl\\:Restriction') no results
etc.
BUT
$('subClassOf > * ') gives me the results (array of restrictions)

also
$('onProperty') gives results but not:
$('[EMAIL PROTECTED]')
$('onProperty[resource]')
etc etc

any ideas? any help is appreciated.

Reply via email to