CZ-NACE codelist from Czech Statistical Office
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> PREFIX skos: <http://www.w3.org/2004/02/skos/core#> PREFIX : <urn:> PREFIX stir: <https://w3id.org/stirdata/vocabulary/> CONSTRUCT { ?cs a skos:ConceptScheme ; skos:prefLabel "CZ-NACE_KL"@cs . ?s a skos:Concept, stir:BusinessActivity ; skos:prefLabel ?label_cs ; skos:altLabel ?label_zkr_cs ; skos:notation ?kod ; skos:inScheme ?cs ; stir:level ?length ; skos:broader ?broader ; skos:exactMatch ?eunace . ?broader skos:narrower ?s . } WHERE { ?s :CHODNOTA ?kod ; :TEXT ?label ; :ZKRTEXT ?label_zkr . OPTIONAL { ?s :NADVAZ ?nad } BIND(STRLANG(?label,"cs") AS ?label_cs) BIND(STRLANG(?label_zkr,"cs") AS ?label_zkr_cs) BIND(STRLEN(?kod) AS ?length) OPTIONAL { #BIND(IF(STRLEN(?kod) < 3, ?kod, CONCAT(SUBSTR(?kod, 1, 2), ".", SUBSTR(?kod, 3, STRLEN(?kod)))) AS ?eukod) BIND(IRI(CONCAT("http://data.europa.eu/ux2/nace2/", ?kod)) AS ?eunace) FILTER(?length < 5) } BIND(IRI("https://obchodní-rejstřík.stirdata.opendata.cz/zdroj/číselníky/nace-cz") as ?cs) BIND(IRI(CONCAT(STR(?cs), "/položky/", ?nad)) AS ?broader) }
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . @prefix skos: <http://www.w3.org/2004/02/skos/core#> . @prefix schema: <https://schema.org> . @prefix adms: <http://www.w3.org/ns/adms#> . @prefix dcterms: <http://purl.org/dc/terms/> . @prefix owl: <http://www.w3.org/2002/07/owl#> . @prefix org: <http://www.w3.org/ns/org#> . @prefix rov: <http://www.w3.org/ns/regorg#> . @prefix locn: <http://www.w3.org/ns/locn#> . @prefix legal: <http://www.w3.org/ns/legal#> . @prefix m8g: <http://data.europa.eu/m8g/> . @prefix stirdata: <https://w3id.org/stirdata/vocabulary/> .
PREFIX stir: <https://w3id.org/stirdata/vocabulary/> DELETE WHERE { ?s stir:level ?o }
PREFIX skos: <http://www.w3.org/2004/02/skos/core#> PREFIX stir: <https://w3id.org/stirdata/vocabulary/> PREFIX cs: <https://obchodní-rejstřík.stirdata.opendata.cz/zdroj/číselníky/nace-cz> INSERT { ?s skos:topConceptOf cs: . cs: skos:hasTopConcept ?s . } WHERE { ?s stir:level 1 . }