RDF correct approach to subClassOf
- by Macarse
I am learning RDF.
What's the difference between this two approaches:
a)
<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:tur="http://www.blah.com/turismo#">
<rdf:Description rdf:about="http://www.blah.com/turismo#plaza">
<rdf:type rdf:resource="http://www.w3.org/2000/01/rdf-schema#Class"/>
</rdf:Description>
<rdf:Description rdf:about="http://www.blah.com/turismo#plazaSinFuente">
<rdf:type rdf:resource="http://www.w3.org/2000/01/rdf-schema#Class"/>
<rdfs:subClassOf rdf:resource="http://www.blah.com/turismo#plaza"/>
</rdf:Description>
b)
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:tur="http://www.blah.com/turismo#">
<rdfs:Class rdf:ID="plaza"/>
<rdfs:Class rdf:ID="plazaSinFuente">
<rdfs:subClassOf rdf:resource="#plaza"/>
</rdfs:Class>