Using two ontologies and two mappings

18 views
Skip to first unread message

Martin Just

unread,
Oct 7, 2021, 7:05:29 AM10/7/21
to ontop4obda
Hello everyone.

Is it possible to use two ontologies with two corresponding mapping files?
If not: What would be the best way to still be able to use entities from both ontologies without merging their ontology files?

kind regards
Martin

Benjamin Cogrel

unread,
Oct 7, 2021, 9:45:44 AM10/7/21
to Martin Just, ontop4obda

Hi Martin,

For the ontologies, you can create a third ontology file that imports the two ontologies, and then provide a XML catalog file telling how to get these files.

For a concrete example, see https://github.com/ontopic-vkg/destination-tutorial/blob/master/vkg/dest-solution.ttl and https://github.com/ontopic-vkg/destination-tutorial/blob/master/vkg/catalog-v001.xml .


For what regards the mapping files, at the moment there is no alternative to merging them. This can be done easily by converting them first into R2RML (if they are not already) and then merge them using the riot from Jena. In a project, we used the following Docker image for Jena: https://github.com/stain/jena-docker

Then the command was something like :

docker jena riot --formatted=TURTLE ./mapping1.ttl ./mapping2.ttl > ./merged-mapping.ttl


Best,

Benjamin

--
Please follow our guidelines on how to report a bug https://ontop-vkg.org/community/contributing/bug-report
---
You received this message because you are subscribed to the Google Groups "ontop4obda" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ontop4obda+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ontop4obda/46806184-55c9-42ae-8af8-1207281c6d0en%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages