Hello,
I already wrote in the past a message about the OWL feature of RAP;
this time I'm trying to be more specific in order to get a reply.
I know that, about the OntModel API, the documentation
(http://sites.wiwiss.fu-berlin.de/suhl/bizer/rdfapi/tutorial/usingtheOntModelAPI.htm)
says:
"Actually only RDFS vocabulary is supported. An OWL vocabulary will
be implemented in the near future"
But what I can't understand at the moment (and maybe this is due to
my current knowledge of RDF, RDFS and OWL) is about the possibility,
using the vocabularies feature
(http://sites.wiwiss.fu-berlin.de/suhl/bizer/rdfapi/tutorial/vocabularies.htm)
and including the OWL vocabulary, to produce a simple OWL ontology
from a PHP application. For example I want to describe a simple
ontology in which the only class is the album class and the only
property is the has_title property, I also want to put a
maxCardinality restriction and to describe the "album1"
individual...can I produce through RAP a file having the content I paste below?
Thanks a lot in advance.
Eugenio.
<owl:Class rdf:ID="album" />
<rdfs:subClassOf>
<owl:Restriction>
<owl:maxCardinality
rdf:datatype="http://www.w3.org/2001/XMLSchema#int">1</owl:maxCardinality>
<owl:onProperty>
<owl:DatatypeProperty rdf:ID="has_title"/>
</owl:onProperty>
</owl:Restriction>
</rdfs:subClassOf>
</owl:Class>
<owl:DatatypeProperty rdf:about="#has_title">
<rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#string"/>
</owl:DatatypeProperty>
<album rdf:ID="album1">
<has_title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">My
album</has_result>
</album>
|