So, I need to generate Java Maps based on triples automatically.
To do that, I'd like to have the 'complete' definition of each class. With its properties, like in an owl file...
For example, this is what I can do now:
object MyVoc extends Vocabulary("http://www.example.com/myvocabulary#") {
val Computer = MyVoc / "Computer"
val owns = prop("owns")
}
object FOAF extends Vocabulary("http://xmlns.com/foaf/0.1/") {
val Person = FOAF / "Person"
}
It would be usefull (not only for me, I guess) to have something like this (I called OntClass refering to ontology class):
val Computer = MyVoc / "Computer"
val owns = prop("owns")
}
object FOAF extends Vocabulary("http://xmlns.com/foaf/0.1/") {
val Person = FOAF / "Person"
}
)
}Now that I was writing, I realised I could siply declare a Class extending the Graph one for my purposes (I'll try it and let you know)...
But I think that the declaration of a vocabulary would be more clear (for me, at least) like this.