SEMICeu / Core-Business-Vocabulary

This is the issue tracker for the maintenance of Core Business Vocabulary
17 stars 4 forks source link

[Use case]: load the core-business ontology #47

Open ticapix opened 6 months ago

ticapix commented 6 months ago

Use case name

load the core-business ontology

Please insert the status of the use case

Tested

Stakeholders

Problem statement

We can't load the ontology by resolving http://www.w3.org/ns/legal# nor pre-fetch a file directly from this repository.

(json context and shacl file are provided, but not a ontology file defining for example owl:Class, owl:DatatypeProperty, ...

Or at least, I couldn't find it

Existing approaches

When we want to use W3C vcard, we can load the ontology in a turtle format, from the base uri http://www.w3.org/2006/vcard/ns#

from owlready2 import get_ontology
onto = get_ontology("http://www.w3.org/2006/vcard/ns#").load()
for classe in onto.classes():
    print(classe, classe.iri)

or

import rdflib
g= rdflib.Graph()
g.parse("http://www.w3.org/2006/vcard/ns#")
for s, p, o in g:
    print(s, p, o)

How to do the same with SEMIC Core Business vocabulary ?

Requirements

as a developer working with ontology framework, I would like to be able to load the ontology with a machine readable file.

PerNordanlind commented 5 months ago

I agree on this, it is an issue we face in a Swedish context and also in the Nordic collaboration project NSG&B. Would be super if this is addressed in next update!

EmidioStani commented 2 months ago

This issue has similarity with #49

All Core Vocabularies concepts are under http://data.europa.eu/m8g on which SEMIC has authority but a Core Vocabulary include concepts from other namespaces such as foaf or dct. The RDF representation of the Core Business, that can be found from the HTML specification, include only concepts from http://data.europa.eu/m8g.

Do you need just Core Business ? Do you need all the concepts or only those from http://data.europa.eu/m8g ?

At the moment, it is possible to retrieve all concepts under m8g from the URL: http://data.europa.eu/m8g