Don;  I'm not sure what is happening in your case, but subPropertyOf works as you outline.  I've attached a min-ontology to demonstrate this.  Run the following query with and without inferencing and you will see that turning on inferences invokes the subPropertyOf relationship.

SELECT ?lbl
WHERE {
  ?thing a :Thing_1 .
  ?thing rdfs:label ?lbl .
}

-- Scott


donundeen wrote:
Hi,
I'm working some queries using subproperties.

my understanding is that
IF
sp subPropertyOf s
AND
x sp y
THEN
x s y

For example, I've made sxml:text a subproperty of rdfs:label

therefore, shouldn't the queries:
CONSTRUCT {
?node sxml:text ?found .
}WHERE{
?node sxml:text ?found .
}

and

CONSTRUCT {
?node sxml:text ?found .
}WHERE{
?node sxml:text ?found .
?node rdfs:label ?found .
}

return the same thing, if inferencing is turned on when you do the
query?

Right now, I've got my inferencing configured to just do SwiftOWLIM.
It seems as though inferencing isnt' doing anything with
subProperties.

When I run inferencing alone, I also don't see any new properties
being added based on subproperties.


  

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "TopBraid Composer Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/topbraid-composer-users?hl=en
-~----------~----~----~----~------~----~------~--~---

<?xml version="1.0"?>
<rdf:RDF
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#";
    xmlns:xsd="http://www.w3.org/2001/XMLSchema#";
    xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#";
    xmlns:owl="http://www.w3.org/2002/07/owl#";
    xmlns:p1="file:///MCNProject3/sargent.xml#"
    xmlns="http://aTopBraidTraining.org/unnamed0#";
  xml:base="http://aTopBraidTraining.org/unnamed0";>
  <owl:Ontology rdf:about="">
    <owl:versionInfo rdf:datatype="http://www.w3.org/2001/XMLSchema#string";
    >Created with TopBraid Composer</owl:versionInfo>
  </owl:Ontology>
  <owl:Class rdf:ID="Thing_1">
    <rdfs:subClassOf rdf:resource="http://www.w3.org/2002/07/owl#Thing"/>
    <rdfs:label rdf:datatype="http://www.w3.org/2001/XMLSchema#string";
    >Thing_1</rdfs:label>
  </owl:Class>
  <owl:DatatypeProperty rdf:ID="text">
    <rdfs:label rdf:datatype="http://www.w3.org/2001/XMLSchema#string";
    >text</rdfs:label>
    <rdfs:subPropertyOf rdf:resource="http://www.w3.org/2000/01/rdf-schema#label"/>
  </owl:DatatypeProperty>
  <Thing_1 rdf:ID="Inst_1_2">
    <rdfs:label rdf:datatype="http://www.w3.org/2001/XMLSchema#string";
    >Label text</rdfs:label>
  </Thing_1>
  <Thing_1 rdf:ID="Inst_1_1">
    <text rdf:datatype="http://www.w3.org/2001/XMLSchema#string";
    >some text property</text>
  </Thing_1>
</rdf:RDF>

<!-- Created with TopBraid Composer -->

Reply via email to