Search Mailing List Archives


Limit search to: Subject & Body Subject Author
Sort by: Reverse Sort
Limit to: All This Week Last Week This Month Last Month
Select Date Range     through    

[protege-owl] Need help! Problem with DL Query

Tran Binh thaibinhtran at gmail.com
Thu Nov 25 00:40:56 PST 2010


Hi All,

I am a newbie, I am using Protege 4.1 beta, I make a very simple OWL file. I
create one class "b2" it has three individual "m,n,o". There is a Object
property "hasChild".

I design that "m" has property hasChild with "n" and "o". That means:

m hasChild n
m hasChild o

When I use DL Query to search for "hasChild min 1" it return "m" as
individual, that is correct, but when I search for "hasChild exactly 2" no
individual return.

Here is my OWL file

<rdf:RDF xml:base="http://www.semanticweb.org/ontologies/2010/8/a.owl">
<owl:Ontology
rdf:about="http://www.semanticweb.org/ontologies/2010/8/a.owl"/>
<owl:AnnotationProperty
rdf:about="http://www.w3.org/2000/01/rdf-schema#label"/>
−
<!--

http://www.semanticweb.org/ontologies/2010/8/a.owl#OWLObjectProperty_00000110355208772624 
-->
−
<owl:ObjectProperty
rdf:about="http://www.semanticweb.org/ontologies/2010/8/a.owl#OWLObjectProperty_00000110355208772624">
<rdfs:label>hasChild</rdfs:label>
</owl:ObjectProperty>
−
<!--

http://www.semanticweb.org/ontologies/2010/8/a.owl#OWLClass_00000003706620939927 
-->
−
<owl:Class
rdf:about="http://www.semanticweb.org/ontologies/2010/8/a.owl#OWLClass_00000003706620939927">
<rdfs:label>b2</rdfs:label>
<rdfs:subClassOf rdf:resource="http://www.w3.org/2002/07/owl#Thing"/>
</owl:Class>
<!-- http://www.w3.org/2002/07/owl#Thing -->
<owl:Class rdf:about="http://www.w3.org/2002/07/owl#Thing"/>
−
<!--

http://www.semanticweb.org/ontologies/2010/8/a.owl#OWLNamedIndividual_00000024470348867132 
-->
−
<owl:Thing
rdf:about="http://www.semanticweb.org/ontologies/2010/8/a.owl#OWLNamedIndividual_00000024470348867132">
<rdf:type
rdf:resource="http://www.semanticweb.org/ontologies/2010/8/a.owl#OWLClass_00000003706620939927"/>
<rdf:type rdf:resource="http://www.w3.org/2002/07/owl#NamedIndividual"/>
<rdfs:label>m</rdfs:label>
<OWLObjectProperty_00000110355208772624
rdf:resource="http://www.semanticweb.org/ontologies/2010/8/a.owl#OWLNamedIndividual_00000024475621630800"/>
<OWLObjectProperty_00000110355208772624
rdf:resource="http://www.semanticweb.org/ontologies/2010/8/a.owl#OWLNamedIndividual_00000024480109870504"/>
</owl:Thing>
−
<!--

http://www.semanticweb.org/ontologies/2010/8/a.owl#OWLNamedIndividual_00000024475621630800 
-->
−
<owl:Thing
rdf:about="http://www.semanticweb.org/ontologies/2010/8/a.owl#OWLNamedIndividual_00000024475621630800">
<rdf:type
rdf:resource="http://www.semanticweb.org/ontologies/2010/8/a.owl#OWLClass_00000003706620939927"/>
<rdf:type rdf:resource="http://www.w3.org/2002/07/owl#NamedIndividual"/>
<rdfs:label>n</rdfs:label>
</owl:Thing>
−
<!--

http://www.semanticweb.org/ontologies/2010/8/a.owl#OWLNamedIndividual_00000024480109870504 
-->
−
<owl:Thing
rdf:about="http://www.semanticweb.org/ontologies/2010/8/a.owl#OWLNamedIndividual_00000024480109870504">
<rdf:type
rdf:resource="http://www.semanticweb.org/ontologies/2010/8/a.owl#OWLClass_00000003706620939927"/>
<rdf:type rdf:resource="http://www.w3.org/2002/07/owl#NamedIndividual"/>
<rdfs:label>o</rdfs:label>
</owl:Thing>
</rdf:RDF>
−
<!--
 Generated by the OWL API (version 3.1.0.20069)
http://owlapi.sourceforge.net 
-->

Could anybody give me an advice?

Thank in advance,
Binh 
-- 
View this message in context: http://protege-ontology-editor-knowledge-acquisition-system.136.n4.nabble.com/Need-help-Problem-with-DL-Query-tp3058583p3058583.html
Sent from the Protege OWL mailing list archive at Nabble.com.



More information about the protege-owl mailing list