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

Match-Elements missing in generated index.json #286

Closed
lummerland opened this issue Dec 15, 2023 · 3 comments
Closed

Match-Elements missing in generated index.json #286

lummerland opened this issue Dec 15, 2023 · 3 comments

Comments

@lummerland
Copy link

While doing tests to prepare a SkoHub upgrade I noticed, that in the generated index.json file there are no more *Match-Elements left. broadMatch, relatedMatch, exactMatch in my case.
As example I take https://github.com/openeduhub/oeh-metadata-vocabs/blob/master/graduation.ttl:

@base <http://w3id.org/openeduhub/vocabs/graduation/> .
@prefix dct: <http://purl.org/dc/terms/>.
@prefix skos: <http://www.w3.org/2004/02/skos/core#>.
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix kim: <https://w3id.org/kim/schulabschluesse/> .
@prefix gnd: <https://d-nb.info/gnd/> .
@prefix gndo: <https://d-nb.info/standards/elementset/gnd#> .
@prefix wd: <http://www.wikidata.org/entity/> .

<> a skos:ConceptScheme;
    dct:title "Abschluss"@de;
    dct:title "Graduation"@en;
    dct:description "Eine Wertelliste für schulische und Hochschulabschlüsse. Entstanden im Kontext des OpenEduHub."@de;
    dct:creator "<https://wirlernenonline.de>" ;
    dct:created "2022-10-11"^^xsd:date;
    dct:modified "2022-10-11"^^xsd:date; 
    dct:license <http://creativecommons.org/publicdomain/zero/1.0/> ;
    skos:hasTopConcept <ohne_schulabschluss>, <erster_allgemeinbildender_schulabschluss>, <mittlerer_schulabschluss>, 
        <fachhochschulreife>, <fachgebundene_hochschulreife>, <allgemeine_hochschulreife>,
        <bachelor>, <master>, <promotion> .

<ohne_schulabschluss> a skos:Concept ;
    skos:prefLabel "Ohne Schulabschluss"@de ;
    skos:exactMatch kim:cf42a778-3982-4f27-8b9a-92e5875342c0 ;
    skos:topConceptOf <> .

...

In our current version the generated index.json contains:

{
            "id": "http://w3id.org/openeduhub/vocabs/graduation/ohne_schulabschluss",
            "prefLabel": {
                "de": "Ohne Schulabschluss"
            },
            "exactMatch": [
                {
                    "id": "https://w3id.org/kim/schulabschluesse/cf42a778-3982-4f27-8b9a-92e5875342c0"
                }
            ]
}

In the new version it changed to this:

{
            "id": "http://w3id.org/openeduhub/vocabs/graduation/ohne_schulabschluss",
            "prefLabel": {
                "de": "Ohne Schulabschluss"
            }
},

Did I miss something ... ?

Thanks & regards!

@lummerland lummerland changed the title *Match missing in generated index.json Match-Elements missing in generated index.json Dec 15, 2023
@sroertgen
Copy link
Contributor

I think they were never present in the original skohub-vocabs versions.
ircc we added them to OEH for specific purposes.

You might have to add them somewhere beneath here:

fragment ConceptFields on Concept {

Like

exactMatch {
  id
  }

@lummerland
Copy link
Author

Oh, okay. Good to know ;) Thanks, will try that!

@sroertgen
Copy link
Contributor

Will close this for now. Feel free toreopen if it does not work.

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

No branches or pull requests

2 participants