Is it possible to subclass a class found in FOAF (http://xmlns.com/foaf/spec/)? I tried something like the code below, but I am not sure if it is the proper way to do it or not.
<rdfs:Class rdf:ID="user">
<rdfs:subClassOf rdf:resource="http://xmlns.com/foaf/0.1/#Agent" />
<rdfs:comment>
The class of users, subclass of foaf:Agent.
</rdfs:comment>
</rdfs:Class>
Your snippet, although not a complete RDF document, is the right way to make
yourdoc#user
a subclass ofhttp://xmlns.com/foaf/0.1/#Agent
. However, that latter class is not the FOAF Agent class. The FOAF Agent class is identified by the URIhttp://xmlns.com/foaf/0.1/Agent
(with no#
). It might be useful to have a look at the actual FOAF ontology, because you can see how it defines subclasses of Agent. For instance, it declared foaf:Organization withIf you're writing this by hand, it's much easier to work in the Turtle or N3 serialization, where that would be: