You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jena.apache.org by Mark Fischer <tr...@gmail.com> on 2012/12/14 17:29:57 UTC

Is this an Owl2.0 Issue?

OntResource res = getOntResource("
http://www.w3.org/1999/02/22-rdf-syntax-ns#type");

boolean isProp = res.isProperty();

When I look at isProp, it is 'false'.

This is happening when I create my Ontology using Protege4.1.
If I create the Ontology using Jena, isProp is 'true' (The expected
result)

This same issue applies to:

http://www.w3.org/1999/02/22-rdf-syntax-ns#first
http://www.w3.org/1999/02/22-rdf-syntax-ns#object
http://www.w3.org/1999/02/22-rdf-syntax-ns#subject
http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate
http://www.w3.org/1999/02/22-rdf-syntax-ns#rest
http://www.w3.org/2000/01/rdf-schema#isDefinedBy
http://www.w3.org/2000/01/rdf-schema#seeAlso
http://www.w3.org/2000/01/rdf-schema#subClassOf
http://www.w3.org/2000/01/rdf-schema#domain
http://www.w3.org/2000/01/rdf-schema#subPropertyOf
http://www.w3.org/2000/01/rdf-schema#range
http://www.w3.org/2000/01/rdf-schema#comment
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://www.w3.org/2000/01/rdf-schema#label

My thought is that since Protege4.1 is using Owl2.0 and Jena
uses Owl1.0, there may be a reasonable explanation.

Does this ring a bell for anybody?

--
Mark Fischer

Re: Is this an Owl2.0 Issue?

Posted by Dave Reynolds <da...@gmail.com>.
[Sorry to be slow, been off-grid for a few weeks.]

If I recall correctly isProperty is testing if the term is declared as a 
property within the ontology (including any associated inference regime).

For a built-in term like rdf:type then OWL DL flavours regard this as 
part of the machinery, not a declarable property. For RDF semantics then 
it is just another property.

I suspect the difference is in how you created the ontology, but would 
need more details to be sure. In Jena then an OntModel will default to 
RDFS reasoning which is enough infer the explicit type of rdf:type.

Dave

On 14/12/2012 16:29, Mark Fischer wrote:
> OntResource res = getOntResource("
> http://www.w3.org/1999/02/22-rdf-syntax-ns#type");
>
> boolean isProp = res.isProperty();
>
> When I look at isProp, it is 'false'.
>
> This is happening when I create my Ontology using Protege4.1.
> If I create the Ontology using Jena, isProp is 'true' (The expected
> result)
>
> This same issue applies to:
>
> http://www.w3.org/1999/02/22-rdf-syntax-ns#first
> http://www.w3.org/1999/02/22-rdf-syntax-ns#object
> http://www.w3.org/1999/02/22-rdf-syntax-ns#subject
> http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate
> http://www.w3.org/1999/02/22-rdf-syntax-ns#rest
> http://www.w3.org/2000/01/rdf-schema#isDefinedBy
> http://www.w3.org/2000/01/rdf-schema#seeAlso
> http://www.w3.org/2000/01/rdf-schema#subClassOf
> http://www.w3.org/2000/01/rdf-schema#domain
> http://www.w3.org/2000/01/rdf-schema#subPropertyOf
> http://www.w3.org/2000/01/rdf-schema#range
> http://www.w3.org/2000/01/rdf-schema#comment
> http://www.w3.org/1999/02/22-rdf-syntax-ns#type
> http://www.w3.org/2000/01/rdf-schema#label
>
> My thought is that since Protege4.1 is using Owl2.0 and Jena
> uses Owl1.0, there may be a reasonable explanation.
>
> Does this ring a bell for anybody?
>
> --
> Mark Fischer
>