OP-TED / ePO

The eProcurement Ontology provides the formal, semantic foundation for the creation and reuse of linked open data in the domain of public procurement in the EU.
European Union Public License 1.2
58 stars 18 forks source link

`hasMainClassification, hasAdditionalClassification` codelist and example #397

Closed VladimirAlexiev closed 6 months ago

VladimirAlexiev commented 1 year ago

These two props

epo:hasAdditionalClassification   rdf:type          owl:ObjectProperty ;
epo:hasMainClassification rdf:type          owl:ObjectProperty ;

Refer to "The codelist to be used is at-voc:cpv which is available at http://publications.europa.eu/resource/dataset/cpv".

In the browser this resolves to http://publications.europa.eu/resource/cellar/1356ebf8-80b9-11ea-bf12-01aa75ed71a1.0001.05/DOC_1, which is a gc.xml file and doesn't offer RDF nodes that can be used in an ObjectProperty. Here's how it looks:

    <SimpleCodeList>
        <Row>
            <Value ColumnRef="code">
                <SimpleValue>03000000</SimpleValue>
            </Value>
            <Value ColumnRef="Name">
                <SimpleValue>Agricultural, farming, fishing, forestry and related products</SimpleValue>
            </Value>

But if you get it with curl, you get an RDF file that refers to http://publications.europa.eu/resource/expression/cpv. Get this with curl and you see another RDF file that has these triples:

<http://publications.europa.eu/resource/expression/cpv>
        cdm:expression_manifested_by_manifestation
                <http://publications.europa.eu/resource/distribution/cpv/rdf/skos_ap_eu> , 
                <http://publications.europa.eu/resource/distribution/cpv/rdf/skos_core> , 
                <http://publications.europa.eu/resource/distribution/cpv/xml/gc> ;

Finally, these 3 refer to machine-readable distributions of CPV:

I think the first is the richer one of the RDF formats. You can get it like this:

curl -LO http://publications.europa.eu/resource/distribution/cpv/rdf/skos_ap_eu/cpv-skos-ap-eu.rdf

Therefore please:

VladimirAlexiev commented 1 year ago

The URLs in http://publications.europa.eu/resource/distribution/cpv/rdf/skos_core/cpv-skos.rdf are the same, and the file is much smaller (not because skos_ap_eu is much richer, but because it's formatted badly).

So it's better to refer to http://publications.europa.eu/resource/distribution/cpv/rdf/skos_core/cpv-skos.rdf (or http://publications.europa.eu/resource/distribution/cpv/rdf/skos_core)

andreea-pasare commented 6 months ago

The codelists are just recommendations in the ePO UML diagrams, therefore all reference to codelists in the machine readable files have been removed.

VladimirAlexiev commented 5 months ago

Similar objections to closing this as https://github.com/OP-TED/ePO/issues/396

andreea-pasare commented 5 months ago

@VladimirAlexiev, thank you for your reply. This seems to be a change that needs to be done in model2owl. I added a ticket there regarding this request: