|
From: Simon S. <ses...@gm...> - 2016-09-03 16:57:28
|
> <rdf:Description > rdf:about=" http://www.semanticweb.org/adoxx/ontologies/2016/5/untitled-ontology-24#hasId "> > <rdfs:label>hasId</rdfs:label> > <rdf:type > rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#Property"/> > </rdf:Description> This is an rdfs property. You should declare this as a datatype property. OWLAPI, in non-strict mode, will hack rdfs properties into object or data properties if there is a suitable range declaration; otherwise it will fall back to using an annotation property. Simon On Sep 3, 2016 5:56 AM, "Benedikt Pittl" <ben...@un...> wrote: > Dear all! > > First I want to thank you for answering my question yesterday. Today I > observed a problem with the assertions. I have an RDF like in the > following section (by the way, the RDF was created using D2RQ): > > <?xml version="1.0" encoding="windows-1252"?> > <rdf:RDF > xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" > > xmlns:vocab="http://www.semanticweb.org/adoxx/ontologies/2016/5/untitled- > ontology-24#" > xmlns:owl="http://www.w3.org/2002/07/owl#" > xmlns:db="....." > xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" > xmlns:map="......" > xmlns:xsd="http://www.w3.org/2001/XMLSchema#" > > <rdf:Description > rdf:about="http://www.semanticweb.org/adoxx/ontologies/2016/5/untitled- > ontology-24#hasId"> > <rdfs:label>hasId</rdfs:label> > <rdf:type > rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#Property"/> > </rdf:Description> > <rdf:Description > rdf:about="http://www.w3.org/2000/01/rdf-schema#label"> > <rdf:type > rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#Property"/> > </rdf:Description> > <rdf:Description > rdf:about="http://www.semanticweb.org/adoxx/ontologies/2016/5/untitled- > ontology-24#kunde2"> > <vocab:hasId > rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">2</vocab:hasId> > <rdfs:label>kunden #2</rdfs:label> > <rdf:type > rdf:resource="http://www.semanticweb.org/adoxx/ontologies/2016/5/untitled- > ontology-24#Consumer"/> > </rdf:Description> > <rdf:Description > rdf:about="http://www.semanticweb.org/adoxx/ontologies/2016/5/untitled- > ontology-24#Consumer"> > <rdfs:label>Consumer</rdfs:label> > <rdf:type > rdf:resource="http://www.w3.org/2000/01/rdf-schema#Class"/> > </rdf:Description> > </rdf:RDF> > > My goal is to import this RDF an merge it with other ontologies. By > importing the file via loadOntologyFromOntologyDocument I observed that > the I get an AnnotationAssertion instead of a DataPropertyAssertion for > the property hasId. > So I get > > AnnotationAssertion(<http://www.semanticweb.org/adoxx/ > ontologies/2016/5/untitled-ontology-24#hasId> > <http://www.semanticweb.org/adoxx/ontologies/2016/5/ > untitled-ontology-24#kunde2> > "2"^^xsd:integer) > instead of > > DataPropertyAssertion(<http://www.semanticweb.org/adoxx/ > ontologies/2016/5/untitled-ontology-24#hasId> > <http://www.semanticweb.org/adoxx/ontologies/2016/5/ > untitled-ontology-24#kunde2> > "2"^^xsd:integer). > > What RDF construct is necessary to get the DataPropertyAssertion? > > Kind regards > Benedikt > > ------------------------------------------------------------ > ------------------ > _______________________________________________ > Owlapi-developer mailing list > Owl...@li... > https://lists.sourceforge.net/lists/listinfo/owlapi-developer > |