Mappings
Loading a Mapping
Before you try making a mapping of your own from scratch, let’s load the Books mapping which we have prepared for you, so you can see what an ontology mapping looks like.
Go back to the Books ontology, choose the version, and then from the Ontology Menu, choose Mappings.
Click on the Add Mapping card in the Mappings catalog, and from the Mapping Import tab of the drawer, select the Books mapping file. You can now see the mapping in the catalog.
Creating a new Mapping
Now let’s try to create a new mapping from scratch.
Go back to the Mappings catalog of the Books ontology, click on the Add Mapping card, and this time move to the Mapping Creator tab. You’ll be asked to provide an Version for the mapping, and a description. Just make sure you give it a version that is different from the one in the Mappings file you uploaded previously.
Once that is done, you should see two mappings in the Mapping catalog. For each mapping in the catalog, the Duplicate button is available, to create a new copy of the mapping, for example to move to a new version of the mappings.
Click on the card of the new one, and you can begin adding SQL Views, Ontology Mappings, and SQL View Constraints.
Mapping Menu

The Mapping Menu is composed by the following items:
- Mapping Info: descriptions, list of templates and a general view of the mappings in the file
- Mapping: here you can explore all the mappings accessing them by three point of views:
- Mapping Graph: graphically
- Entity Mappings: show mappings from the perspective of the ontology’s entities
- SQL Views: show mapppings from the perspective of the SQL queries over the database
- Data Lineage: a summerized view of the flowing of data from the ontology to the database’s tables
- SQL View Constraints: manage the contraints to help Mastro optimize the SPARQL queries
- Templates: show mappings from the perspective of the used templates.
- Triplify: to materialized the linked data mapping in a single file. Be careful using this tool because it could be dangerous in case of big databases.
Previous Next