Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Map the yaml config to the W3C meta-data ontologies #180

Open
ldesousa opened this issue Aug 27, 2022 · 2 comments
Open

Map the yaml config to the W3C meta-data ontologies #180

ldesousa opened this issue Aug 27, 2022 · 2 comments

Comments

@ldesousa
Copy link
Contributor

ldesousa commented Aug 27, 2022

Update: this issue is considerably broader than initially assessed, the output RDF has semantic flaws at various levels that aren't solvable with the current parser. I will start by creating a thorough map between each keyword in the yaml configuration file to classes and predicates in the W3C ontologies (DCat, VCard, Prov, etc). From that map a new parser can be developed with a more direct RDF generation.

I transformed the JSON-LD output to Turtle for legibility (see below). The organisation instance is using the vcard:fn predicate, which is a data property of the Individual class. Basically it says that the full name of EC is "Tom Kralidis". The semantics of VCard must be revised.

<https://www.ec.gc.ca/> a vcard:Organization ;
    vcard:country-name "Canada" ;
    vcard:fn "Tom Kralidis" ;
    vcard:hasEmail "[email protected]" ;
    vcard:hasOrganizationName "Environment Canada" ;
    vcard:hasTelephone "+01-123-456-7890" ;
    vcard:locality "Toronto" ;
    vcard:postal-code "M3H 5T4" ;
    vcard:street-address "4905 Dufferin Street" ;
    dcat:accessURL "https://www.ec.gc.ca/" .
@ldesousa
Copy link
Contributor Author

Below is a snippet from the JSON-LD output for the sample.yml file. The contact individual is replicated and is not interpreted correctly by the RDF parser.

    "contact": [
        {
            "organization": "Environment Canada",
            "url": "https://www.ec.gc.ca/",
            "individualname": "Tom Kralidis",
            "positionname": "Senior Systems Scientist",
            "phone": "+01-123-456-7890",
            "fax": "+01-123-456-7890",
            "address": "4905 Dufferin Street",
            "city": "Toronto",
            "administrativearea": "Ontario",
            "postalcode": "M3H 5T4",
            "country": "Canada",
            "email": "[email protected]",
            "hoursofservice": "0700h - 1500h EST",
            "contactinstructions": "email",
            "@id": "https://www.ec.gc.ca/",
            "@type": "vcard:Organization"
        },
        {
            "organization": "Environment Canada",
            "url": "https://www.ec.gc.ca/",
            "individualname": "Tom Kralidis",
            "positionname": "Senior Systems Scientist",
            "phone": "+01-123-456-7890",
            "fax": "+01-123-456-7890",
            "address": "4905 Dufferin Street",
            "city": "Toronto",
            "administrativearea": "Ontario",
            "postalcode": "M3H 5T4",
            "country": "Canada",
            "email": "[email protected]",
            "hoursofservice": "0700h - 1500h EST",
            "contactinstructions": "email",
            "@id": "https://www.ec.gc.ca/",
            "@type": "vcard:Organization"
        }
    ],

@ldesousa ldesousa changed the title VCard semantics in DCat schema Map the yaml config to the W3C meta-data ontologies Aug 28, 2022
@ldesousa
Copy link
Contributor Author

ldesousa commented Aug 28, 2022

I started the map in my fork. Still has some ways to go, but could already be usable. When the DataProperty column has content a literal is sufficient. Otherwise, if the content is in the ObjectProperty column then a new instance is necessary, of the type in the Range column

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant