@prefix ex: <http://example.org/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
ex:Student rdfs:subClassOf foaf:Person .
ex:Professor rdfs:subClassOf foaf:Person .
ex:personA a foaf:Person .
ex:personB a foaf:Person, ex:Student .
ex:personC a foaf:Person, ex:Professor .
ex:personD a foaf:Person, ex:Student, ex:Professor .
than http://example.org/personA should be rendered with person, http://example.org/personB should be rendered with student, http://example.org/personC should be rendered with professor, and http://example.org/personD should produce a warning and should be rendered randomly with professor or student.
If we have the following class template mappings:
this data
than
http://example.org/personA
should be rendered withperson
,http://example.org/personB
should be rendered withstudent
,http://example.org/personC
should be rendered withprofessor
, andhttp://example.org/personD
should produce a warning and should be rendered randomly withprofessor
orstudent
.