[Activerdf] Inheritance
Yoan BLANC
greut.lists at dosimple.ch
Sat Dec 30 15:15:07 GMT 2006
I've got this very simple schema
test:Person rdf:type rdfs:Class
test:Male rdf:type rdfs:Class
test:Male rdfs:subClassOf test:Person
test:name rdf:type rdfs:Property
test:name rdfs:range rdf:Literal
test:name rdfs:domain test:Person
So I can do this :
me = TEST::Person.new('http://example.org/me/')
me.save
me.name = "Me"
but to do this
you = TEST::Male.new('http://example.org/you/')
you.save
you.name = "You"
I need to had this into my model:
test:name rdfs:domain test:Male
Am I wrong somewhere ? Does ActiveRDF need a fix about the subClassOf
statement ?
The biggest problem with that is that schemas like FOAF use intensively
subClassOf. For example :
foaf:Person rdfs:subClassOf foaf:Agent
foaf:jabberID rdfs:domain foaf:Agent
So I can't set a JID on a person without editing the foaf scheme itself,
annoying, no ?
Cheers,
Yoan
More information about the Activerdf
mailing list