You are viewing an old version of this page. View the current version.

Compare with Current Restore this Version View Page History

« Previous Version 9 Next »

Content of this page

On graphs

Get all distinct graphs in a repo

PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
SELECT DISTINCT ?g 
WHERE {
  GRAPH ?g { }
}


Get all triples in a given graph 

SELECT * from named <https://unstats.un.org/classifications/CPC/v2.1/> {
  GRAPH ?g { ?s ?p ?o }.
}


Get al items in 

SELECT ?collection_code ?concept_code ?concept_label  WHERE {
    ?collection skos:notation ?collection_code . FILTER (str(?collection_code)='fisheries') .
    ?collection skos:member ?concept .
    ?concept skos:notation ?concept_code .
    ?concept skos:prefLabel ?concept_label .
}

On concept schemes

Get all skos:ConceptScheme in a repo

SELECT ?s  
WHERE {
  ?s rdf:type skos:ConceptScheme .
}