Swirrl / ons-data-export

Temporary repo to keep track of the extraction of data between the PMD3 backed alpha for the COGS project, and the PMD4 staging server.
0 stars 0 forks source link

Invalid concept hierarchy in code lists #48

Closed jennet closed 4 years ago

jennet commented 4 years ago

There are some code lists that are returning skos:broader concepts that do not have information associated with them. This will cause the concept tree to error.

The code lists affected on cogs-staging are:

http://gss-data.org.uk/def/concept-scheme/pink-book-services
http://gss-data.org.uk/def/concept-scheme/itis-services
http://gss-data.org.uk/def/concept-scheme/ons-partner-geography
http://gss-data.org.uk/def/concept-scheme/product-department

Full list of concepts with dead end broader concepts can be found using:

PREFIX skos:    <http://www.w3.org/2004/02/skos/core#>

SELECT ?scheme ?concept ?broader  {
    ?concept a skos:Concept .
    ?concept skos:inScheme ?scheme .
    ?concept skos:broader ?broader .
    FILTER NOT EXISTS {
        ?broader a skos:Concept 
    } 
}
jennet commented 4 years ago

I will remove the "dead ends" in the staging data for now, but this is another source data fix required.

jennet commented 4 years ago

data fix applied to #50

jennet commented 4 years ago

No fixes were needing in the latest data updates. Closing this issue and making a note of it on the cogs-issue https://github.com/Swirrl/cogs-issues/issues/13