What is the difference between rdf:seeAlso
and rdfs:seeAlso
?
When I can use rdf:seeAlso
and when I can use rdfs:seeAlso
?
Can you do any examples?
What is the difference between rdf:seeAlso
and rdfs:seeAlso
?
When I can use rdf:seeAlso
and when I can use rdfs:seeAlso
?
Can you do any examples?
First, note that
rdf
andrdfs
are prefixes commonly used to reference the RDF syntax and RDF schema vocabularies respectively. Therdf
is typically used for http://www.w3.org/1999/02/22-rdf-syntax-ns#, so thatrdf:seeAlso
would expand to http://www.w3.org/1999/02/22-rdf-syntax-ns#seeAlso. However, if you follow the vocabulary reference, you won't find a term defined forseeAlso
. The RDF syntax is used for basic types such as rdf:type, rdf:XMLLiteral, and rdf:langString. the RDF Schema vocabulary is typically bound to therdfs
prefix, and is at http://www.w3.org/2000/01/rdf-schema#. It is mostly used to define terms useful in performing simple reasoning over RDF graphs, such asrdfs:subClassOf
,rdfs:domain
, andrdfs:range
.In reality, the terms defined between the two vocabularies end up being in arbitrary locations, and on retrospect, there should have probably been just a single vocabulary definition and a more easily understood location (such as http://www.w3.org/ns/rdf#), but too late for that now.
Why use
rdfs:seeAlso
is unclear. The description says "Further information about the subject resource.", but there's rules defined for how to use it. In Linked Data, it can be used to do just what it says, and a hypothetical linked data client might dereference IRI values ofrdfs:seeAlso
to find out more information that might be useful.You can find out more in the RDF Concepts document and other publications of the RDF Working Group.
These are defined pretty clearly in the specification:
You can use these whenever they're appropriate. Just include the appropriate triples in your data. I don't think there's really a whole lot of need for examples in this case; if something's a related resource, add a seeAlso link. If something has a definition by another resource, add a isDefinedBy link. Note that last bit, "rdfs:isDefinedBy is a subproperty of rdfs:seeAlso". That means that whenever you assert that "x rdfs:isDefinedBy y", you're implicitly asserting that "x rdfs:seeAlso y".
rdf is the original resource description framework whereas rdfs provides the schema information