<jupyter_start><jupyter_text>https://www.w3.org/TR/vocab-data-cube/![Data Cube Vocabulary](https://www.w3.org/TR/vocab-data-cube/images/qb-fig1.png)<jupyter_code>PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX void: <http://rdfs.org/ns/void#>
PREFIX pmdkos: <http://publishmydata.com/def/pmdkos/>
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX dcat: <http://www.w3.org/ns/dcat#>
PREFIX pmdui: <http://publishmydata.com/def/pmdui/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX markdown: <https://www.w3.org/ns/iana/media-types/text/markdown#>
PREFIX qb: <http://purl.org/linked-data/cube#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>

SELECT *
WHERE { ?s dcterms:title ?o.
      }
LIMIT 10
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX void: <http://rdfs.org/ns/void#>
PREFIX pmdkos: <http://publishmydata.com/def/pmdkos/>
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX dcat: <http://www.w3.org/ns/dcat#>
PREFIX pmdui: <http://publishmydata.com/def/pmdui/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX markdown: <https://www.w3.org/ns/iana/media-types/text/markdown#>
PREFIX qb: <http://purl.org/linked-data/cube#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>

SELECT *
WHERE { ?s a qb:DataSet.
      }
LIMIT 10
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX void: <http://rdfs.org/ns/void#>
PREFIX pmdkos: <http://publishmydata.com/def/pmdkos/>
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX dcat: <http://www.w3.org/ns/dcat#>
PREFIX pmdui: <http://publishmydata.com/def/pmdui/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX markdown: <https://www.w3.org/ns/iana/media-types/text/markdown#>
PREFIX qb: <http://purl.org/linked-data/cube#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>

SELECT *
WHERE { ?s a qb:DataSet;
             qb:structure ?o.
      
      }
LIMIT 10
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX void: <http://rdfs.org/ns/void#>
PREFIX pmdkos: <http://publishmydata.com/def/pmdkos/>
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX dcat: <http://www.w3.org/ns/dcat#>
PREFIX pmdui: <http://publishmydata.com/def/pmdui/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX markdown: <https://www.w3.org/ns/iana/media-types/text/markdown#>
PREFIX qb: <http://purl.org/linked-data/cube#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>

SELECT *
WHERE { ?s a qb:DataSet;
             qb:structure ?o .
      ?o qb:component ?c .
      }
LIMIT 10
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX void: <http://rdfs.org/ns/void#>
PREFIX pmdkos: <http://publishmydata.com/def/pmdkos/>
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX dcat: <http://www.w3.org/ns/dcat#>
PREFIX pmdui: <http://publishmydata.com/def/pmdui/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX markdown: <https://www.w3.org/ns/iana/media-types/text/markdown#>
PREFIX qb: <http://purl.org/linked-data/cube#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX immigration: <http://gss-data.org.uk/data/gss_data/covid-19/ho-statistics-relating-to-covid-19-and-the-immigration-system-may-2020#component/>

SELECT *
WHERE { ?s a qb:DataSet .
        ?obs qb:dataSet ?s .
       
      }
LIMIT 10
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX void: <http://rdfs.org/ns/void#>
PREFIX pmdkos: <http://publishmydata.com/def/pmdkos/>
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX dcat: <http://www.w3.org/ns/dcat#>
PREFIX pmdui: <http://publishmydata.com/def/pmdui/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX markdown: <https://www.w3.org/ns/iana/media-types/text/markdown#>
PREFIX qb: <http://purl.org/linked-data/cube#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX immigration: <http://gss-data.org.uk/data/gss_data/covid-19/ho-statistics-relating-to-covid-19-and-the-immigration-system-may-2020#component/>

SELECT *
WHERE { ?s a qb:DataSet .
        ?obs qb:dataSet ?s ;
             ?p ?v .
       
      }
LIMIT 10
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX void: <http://rdfs.org/ns/void#>
PREFIX pmdkos: <http://publishmydata.com/def/pmdkos/>
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX dcat: <http://www.w3.org/ns/dcat#>
PREFIX pmdui: <http://publishmydata.com/def/pmdui/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX markdown: <https://www.w3.org/ns/iana/media-types/text/markdown#>
PREFIX qb: <http://purl.org/linked-data/cube#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX immigration: <http://gss-data.org.uk/data/gss_data/covid-19/ho-statistics-relating-to-covid-19-and-the-immigration-system-may-2020#component/>

SELECT *
WHERE { ?s a qb:DataSet .
        ?obs qb:dataSet ?s ;
             ?p ?v .
                ?obs <http://purl.org/linked-data/sdmx/2009/dimension#refPeriod> ?v
       
      }
LIMIT 10
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX void: <http://rdfs.org/ns/void#>
PREFIX pmdkos: <http://publishmydata.com/def/pmdkos/>
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX dcat: <http://www.w3.org/ns/dcat#>
PREFIX pmdui: <http://publishmydata.com/def/pmdui/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX markdown: <https://www.w3.org/ns/iana/media-types/text/markdown#>
PREFIX qb: <http://purl.org/linked-data/cube#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX immigration: <http://gss-data.org.uk/data/gss_data/covid-19/ho-statistics-relating-to-covid-19-and-the-immigration-system-may-2020#component/>

SELECT *
WHERE { ?s a qb:DataSet .
        ?obs qb:dataSet ?s ;
             ?p ?v .
                ?obs <http://purl.org/linked-data/sdmx/2009/dimension#refPeriod> ?v
        FILTER ( ?s = <http://gss-data.org.uk/data/gss_data/covid-19/ho-statistics-relating-to-covid-19-and-the-immigration-system-may-2020#dataset> )
      }
LIMIT 10
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX void: <http://rdfs.org/ns/void#>
PREFIX pmdkos: <http://publishmydata.com/def/pmdkos/>
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX dcat: <http://www.w3.org/ns/dcat#>
PREFIX pmdui: <http://publishmydata.com/def/pmdui/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX markdown: <https://www.w3.org/ns/iana/media-types/text/markdown#>
PREFIX qb: <http://purl.org/linked-data/cube#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX immigration: <http://gss-data.org.uk/data/gss_data/covid-19/ho-statistics-relating-to-covid-19-and-the-immigration-system-may-2020#component/>

SELECT ?s (MAX (?v) as ?maxPeriod)
WHERE { ?s a qb:DataSet .
        ?obs qb:dataSet ?s ;
             ?p ?v .
                ?obs <http://purl.org/linked-data/sdmx/2009/dimension#refPeriod> ?v
        FILTER ( ?s = <http://gss-data.org.uk/data/gss_data/covid-19/ho-statistics-relating-to-covid-19-and-the-immigration-system-may-2020#dataset> )
        
      }
GROUP BY ?s
LIMIT 10
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX void: <http://rdfs.org/ns/void#>
PREFIX pmdkos: <http://publishmydata.com/def/pmdkos/>
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX dcat: <http://www.w3.org/ns/dcat#>
PREFIX pmdui: <http://publishmydata.com/def/pmdui/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX markdown: <https://www.w3.org/ns/iana/media-types/text/markdown#>
PREFIX qb: <http://purl.org/linked-data/cube#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX immigration: <http://gss-data.org.uk/data/gss_data/covid-19/ho-statistics-relating-to-covid-19-and-the-immigration-system-may-2020#component/>

SELECT ?s (MIN (?v) as ?minPeriod) (MAX (?v) as ?maxPeriod)
WHERE { ?s a qb:DataSet .
        ?obs qb:dataSet ?s ;
             ?p ?v .
                ?obs <http://purl.org/linked-data/sdmx/2009/dimension#refPeriod> ?v
        
      }
GROUP BY ?s
LIMIT 10
PREFIX qb: <http://purl.org/linked-data/cube#>
PREFIX dim: <http://purl.org/linked-data/sdmx/2009/dimension#>

SELECT ?s (MIN (?v) as ?minPeriod) (MAX (?v) as ?maxPeriod)
WHERE { ?s a qb:DataSet .
        ?obs qb:dataSet ?s ;
             ?p ?v .
                ?obs dim:refPeriod ?v
        FILTER (?s = <http://gss-data.org.uk/data/gss_data/covid-19/phs-weekly-covid-19-statistical-data-in-scotland#dataset>)
      }
GROUP BY ?s
LIMIT 10
PREFIX qb: <http://purl.org/linked-data/cube#>
PREFIX dim: <http://purl.org/linked-data/sdmx/2009/dimension#>

SELECT DISTINCT ?v
WHERE { ?s a qb:DataSet .
        ?obs qb:dataSet ?s ;
             ?p ?v .
                ?obs dim:refPeriod ?v
        FILTER (?s = <http://gss-data.org.uk/data/gss_data/covid-19/phs-weekly-covid-19-statistical-data-in-scotland#dataset>)
      }
LIMIT 10
PREFIX qb: <http://purl.org/linked-data/cube#> PREFIX dim: <http://purl.org/linked-data/sdmx/2009/dimension#> SELECT DISTINCT ?v WHERE { ?s a qb:DataSet . ?obs qb:dataSet ?s ; ?p ?v . ?obs dim:refPeriod ?v . FILTER (?s = <http://gss-data.org.uk/data/gss_data/covid-19/phs-weekly-covid-19-statistical-data-in-scotland#dataset>) }
PREFIX qb: <http://purl.org/linked-data/cube#>
PREFIX dim: <http://purl.org/linked-data/sdmx/2009/dimension#>

SELECT DISTINCT ?v
WHERE { 
  ?obs qb:dataSet <http://gss-data.org.uk/data/gss_data/covid-19/phs-weekly-covid-19-statistical-data-in-scotland#dataset>;
  dim:refPeriod ?v .
}<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.20553398058252428, 'fraction_numerical': 0.04941747572815534, 'mean_word_length': 3.34824820599409, 'pattern_counts': {'":': 0, '<': 149, '<?xml version=': 0, '>': 149, 'https://': 12, 'lorem ipsum': 0, 'www.': 72, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '575989', 'license': 'Unlicense', 'n_tokens_mistral': 4791, 'n_tokens_neox': 4410, 'n_words': 625, 'path': 'SPARQL/GSS Linked Data to Dataset Parameters Step by Step.ipynb', 'repo_name': 'canwaf/scrapbook', 'size': '10300'}