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

Validate weakended contract between věc and místo #593

Open
blcham opened this issue Jan 20, 2023 · 0 comments
Open

Validate weakended contract between věc and místo #593

blcham opened this issue Jan 20, 2023 · 0 comments

Comments

@blcham
Copy link
Collaborator

blcham commented Jan 20, 2023

Relation between místo and věc changed/was weakened from rdfs:subClassOf to skos:broader.

There used to be subClassOf relation:
slovník-gov:generický/umístění/pojem/místo rdfs:subClassOf slovník-gov:generický/věci/pojem/věc

Now there is only skos:broader relation:
slovník-gov:generický/umístění/pojem/místo skos:broader slovník-gov:generický/věci/pojem/věc


I am not sure what is rationale behind dropping the subClassOf triple. Goal of the ticket is to explain what is rationale behind that change or add missing triple.

The relationship is used in different places, see pictures:


I did not find when triples "?x rdfs:subClassOf ?y" were removed from SSP (it seems like they were never there), but I found multiple problematic cases such as <misto, vec>. Within my input of generating forms from SSP 44 problematic cases can be found by query:

PREFIX : <http://onto.fel.cvut.cz/ontologies/kodi/sgov2sforms/>
PREFIX g-sgov-věci-pojem: <https://slovník.gov.cz/generický/věci/pojem/>
PREFIX d-sgov-turistické-cíle-pojem: <https://slovník.gov.cz/datový/turistické-cíle/pojem/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX z-sgov-pojem: <https://slovník.gov.cz/základní/pojem/>

SELECT *
WHERE {
      ?narrowerConcept skos:broader   ?broaderConcept .
      FILTER NOT EXISTS {
         ?narrowerConcept rdfs:subClassOf   ?broaderConcept .
      }
      FILTER NOT EXISTS {
         ?narrowerConcept a ?broaderConcept .
      }    
}

Result is here:
query-result.csv

In whole SSP there are the same query returns 147 answers.

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