TizianaPasciuto / CTP_Ontology

Creative Commons Attribution 4.0 International
0 stars 0 forks source link

How to query having the OWL reasoning materialized? #29

Open TizianaPasciuto opened 4 months ago

TizianaPasciuto commented 4 months ago

How to query having the OWL reasoning materialized?

The RDFs Reasoning can be materialized through Riot option --rdfs=FileConOntologia

For example, we could use the core as the ontology and apply it on the union of all instances, with a command similar to the following

riot --rdfs=CTP_Ontology_core.ttl --formatted=TTL Instances/CTP_Ontology_core_Instance* >TestSparql/20240508/CTPcatWhole_formatted.ttl

assuming to have run riot --formatted=TTL Instances/CTP_Ontology_core_Instance* >TestSparql/20240508/CTPcatWhole_formatted.ttl

we can try to see what statements have been added via RDFs Reasoning via riot TestSparql/20240508/CTPcatWhole_formatted.ttl TestSparql/20240508/CTPcatWhole_formatted_reasoned.ttl

_Originally posted by @riccardoAlbertoni in https://github.com/TizianaPasciuto/CTP_Ontology/issues/16#issuecomment-2100481194_