Hi, I have some questions regarding mapping in Ontop, and I apologize if this information is somewhere else. I just couldn't find it..
First, how exactly should I define a prefix to be used in a map? The documentation says:
Prefixes can be used when writing a URI templates. A prefix must be enclosed between the symbols '&' and ';' and it will be replaced by the prefix definition when the system initializes.
But I understand this is old syntax, right? What about in the new one? I tried to include a "
PREFIX p: <http://www.example.org/la#>" but got an error.
Second, supposing I can define a prefix, the mappings would look something like "p1:{code} a p2:Class", is it possible anyway, or should the object always reference a Class with the default prefix (the ":")?
Finally, about the imported ontologies, is it possible to include a Class from an imported ontology in the mappings? I'm trying to reproduce the second of Ontop's examples this way, but couldn't do it so far. It happens that when I put ":Author" as the object in the mapping it says the URI is unknown by the ontology (since Author is from an imported ontology, with different URI from the current ontology). When I put <
http://meraka/moss/exampleBooks.owl#Author> I also get an unknown URI error. I would like to do something like:
PREFIX books: <http://meraka/moss/exampleBooks.owl#>
:{wr_code} a books:Author .
My intention is to separate the Class' file from the instance's file. Is it possible?
Regards,
Vinicius