Hello all,
I've produced some simple RDF Data Cubes for starters. As always there are some problems I can't quite find
in the documentation about how to make (maybe) simple things:
1) When I materialize triples from a data cube using ontop, it typically generates
the triples that would result from the mappings first then throw an error when I gets to the triples that
are already in the ontology (the error says something along the lines that those triples can't be generated from the database for some reason,
which is logic since they are not in the database, but on the other hand they should not be generated from the DB ....
as I said there are cases when you don't want to generate everything)
A quick fix for this would be to just take the generated triples and paste them at the end of the Turtle file with a simple script,
which is what I do for now.
2) There are situations when I want to generate data for multiple languages.
It so happens that I have the labels for multiple languages in the database (English, German, etc).
Do I need to write 2 separate mappings? (one for German, one for English) or is there a way to write
just one mapping and insert some logic that says the label should be in this language and from this field....
I've only seen simple mappings and don't really know if it's possible to add such conditions.
Is there a convention for publishing data in multiple languages with ontop?
It would be really good to know this convention if it exists, as it is useful for triplifications :)
3) How can I run ontop with multiple ontologies so that I can generate multiple cubes? There are 2 solutions as far as I can see, but each has its problems:
- a) either use a single ontology (as all data cubes have the same structure), but keep in mind the dsd (data structure definitions) do not come from the database -
so I will not really know which thing belongs to which cube without writing some logic to re-assemble them later....(see question 1)
- b) either use multiple ontologies - but then how do I start ontop in Virtual Graph mode with multiple ontologies (would be nice to be able to do that) ?
As far as I noticed you start ontop with an ontology that has one obda file associated.....
What would be the case to use to generate multiple data cubes (case a) or b) from this question)?
4) Suppose I just want some initials for a person : LB instead of Laurel Brown, for example....(useful if you do not want to publish the real names of the persons).
Can we also use some functions / logic to split words, extract part of them, etc, or some logic to reject certain types of URIs
without writing Java code when we write ontop mappings?
Not sure if everything I said was clear, or doable with ontop. What do you think?
Other than these problems, I already like ontop (so much better than just Jena) :) Keep up the good work!
Best regards,
Adrian