Search Mailing List Archives
[protege-owl] OWL individuals
tredmond at stanford.edu
Thu Apr 19 11:19:39 PDT 2007
Herein is the big advantage of writing OWL with an editor rather than
mucking with the rdf syntax directly.
When you went to the validator, there was one anomaly that you did not
notice. Yes, it did validate the ontology as owl lite but notice the
name of the individual in the abstract syntax representation that it
The name that you wanted for the individual has been lost. Replace the
rdf:resource with rdf:ID and you get something much better:
Going back to the definitions of rdf
(http://www.w3.org/TR/rdf-syntax-grammar/) we see that you are not using
rdf:resource correctly. So their first example shows
<rdf:Description ex:fullName="Dave Beckett">
In this fragment the ex:homePage is the property and the resource is
indicating the id of a value for this property. So the triple
represented by this fragment has the form
< Subject = Description resource whose full name is "Dave Beckett"
Predicate = "ex:homePage"
Object = Resource with id "http://purl.org/net/dajobe/" >
So the validator ignored the rdf:resource statement as meaningless but
Protege (probably because it used Jena) warned you about this.
Eugenio Tacchini wrote:
> I have a "car" class and I want to "link" each car individual to an URL.
> I have used this code:
> <owl:Class rdf:ID="cars"/>
> The file is validated by
> http://phoebus.cs.man.ac.uk:9999/OWL/Validator but protege 3.2.1
> shows to me this errore message: "resource not allowed as attribute here."
> I saw that protege uses "ID" and not "resource" for individuals, but
> "resource" should be valid too, isn't it?
> protege-owl mailing list
> protege-owl at lists.stanford.edu
> Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03
More information about the protege-owl