Haigutus / Energy-Reference-Data

Reference Data for Energy domain using SKOS
0 stars 2 forks source link

Use both name and UUID as resolvable reference #49

Open Sveino opened 1 year ago

Sveino commented 1 year ago

The reference data for SynchronousMachine.operatingMode is in Turle:

@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix nc: <http://entsoe.eu/ns/nc#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .

<http://energy.referencedata.eu/PropertyReference/SynchronousMachine.operatingMode> a <http://iec.ch/TC57/CIM100#PropertyReference>,
        skos:Concept ;
    nc:PropertyReference.mRID "1d3bb064-b765-4d06-992a-70f1ce3d0bd4" ;
    nc:PropertyReference.name "SynchronousMachine.operatingMode" ;
    dcterms:identifier "urn:uuid:1d3bb064-b765-4d06-992a-70f1ce3d0bd4" ;
    skos:definition "Current mode of operation." ;
    skos:inScheme "http://energy.referencedata.eu/PropertyReference" ;
    skos:prefLabel "SynchronousMachine.operatingMode" ;
    skos:topConceptOf "http://energy.referencedata.eu/PropertyReference" .

Only http://energy.referencedata.eu/PropertyReference/SynchronousMachine.operatingMode is resolvable should http://energy.referencedata.eu/PropertyReference/[SynchronousMachine.operatingMode](urn:uuid:1d3bb064-b765-4d06-992a-70f1ce3d0bd4) also be resolvable.

Haigutus commented 1 year ago

We need to be careful to not mix up intended use or URL and URN

https://www.rfc-editor.org/rfc/rfc3986#section-1.1.2 https://stackoverflow.com/questions/4913343/what-is-the-difference-between-uri-url-and-urn

Proposal: In future develop a webservice where input of URN (example: urn:uuid:) will direct to the resource URL

Sveino commented 1 year ago

I am generally OK with this approach. This could in general be a ObjectRegistry Service that can include reference data and CGM.