Closed tgalery closed 9 years ago
So this assumes that the type exists already in the ontologyTypeStore
right?
it tries to retrieve the type from the ontologyTypeStore
, but if it can't find it, it doesn't add it (hence the try...catch
).
This means that you can't add arbitrary types, only the ones that belong to the dbpedia ontology, or other supported ontology (Schema, OpenCyc), etc...
:+1:
It would be good to investigate how to add stuff from other ontologies, but I think that would require adding classes that extend OntologyType
somehow. Also the presence of a Class doesn't seem to translate as presence of information from a specific class, for example, there's a Freebase OntologyType
but no freebase types in the model.
Thanks!!
This PR adds the functionality of parsing types from a file when adding resources if the resource comes with a pipe separated list of types
DBPediaResource|type1|type2
and so on.