This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PREFIX qb: <http://purl.org/linked-data/cube#> | |
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> | |
SELECT (count (distinct ?conc) as ?countconc) ?schemelab | |
WHERE { | |
?conc <http://www.w3.org/2004/02/skos/core#inScheme> ?scheme . | |
?scheme rdfs:label ?schemelab . | |
} | |
GROUP BY ?schemelab | |
ORDER BY desc(?countconc) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PREFIX qb: <http://purl.org/linked-data/cube#> | |
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> | |
SELECT (count (distinct ?concsch) as ?countconc) | |
WHERE { | |
?concsch a <http://www.w3.org/2004/02/skos/core#ConceptScheme> . | |
?concsch rdfs:label ?concschlab . | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PREFIX qb: <http://purl.org/linked-data/cube#> | |
SELECT (count (distinct ?s) as ?counts) ?ds | |
WHERE { | |
?s a <http://purl.org/linked-data/cube#Observation> ; | |
qb:dataSet ?ds . | |
} | |
GROUP BY ?ds |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT (count (distinct ?s) as ?counts) | |
WHERE { | |
?s a <http://purl.org/linked-data/cube#Observation> | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT (count (?s) as ?counts) | |
WHERE { | |
?s ?p ?o | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PREFIX qb: <http://purl.org/linked-data/cube#> | |
SELECT (count (distinct ?o) as ?counto) | |
WHERE { | |
?s qb:dataSet ?o | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> | |
SELECT ?periodlabel ?count | |
WHERE { | |
?obs <http://purl.org/linked-data/cube#dataSet> <http://opendatacommunities.org/data/homelessness/rough-sleeping/count> . | |
?obs <http://opendatacommunities.org/def/ontology/geography/refArea> <http://opendatacommunities.org/id/geography/administration/ctry/E92000001> . | |
?obs <http://opendatacommunities.org/def/ontology/time/refPeriod> ?perioduri . | |
?obs <http://opendatacommunities.org/def/ontology/homelessness/roughSleepingObs> ?count . | |
?perioduri rdfs:label ?periodlabel . | |
} | |
ORDER BY ?periodlabel |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from selenium import webdriver | |
from selenium.webdriver.common.by import By | |
from selenium.webdriver.support.ui import WebDriverWait | |
from selenium.webdriver.support import expected_conditions as EC | |
from selenium.webdriver.common.keys import Keys | |
import time | |
import csv | |
path_to_chromedriver = '/Users/Jamie/Projects/Propolis_Stuff/chromedriver' # change path as needed |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> | |
SELECT ?periodlabel ?countb ?countm | |
WHERE { | |
?obsm <http://purl.org/linked-data/cube#dataSet> <http://opendatacommunities.org/data/homelessness/rough-sleeping/count> ; | |
<http://opendatacommunities.org/def/ontology/geography/refArea> <http://opendatacommunities.org/id/geography/administration/md/E08000003> ; | |
<http://opendatacommunities.org/def/ontology/time/refPeriod> ?perioduri ; | |
<http://opendatacommunities.org/def/ontology/homelessness/roughSleepingObs> ?countm . | |
<http://opendatacommunities.org/id/geography/administration/md/E08000003> rdfs:label ?aream . | |
?obsb <http://purl.org/linked-data/cube#dataSet> <http://opendatacommunities.org/data/homelessness/rough-sleeping/count> ; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<!--Load the AJAX API--> | |
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script> | |
<script src='https://code.jquery.com/jquery-3.2.1.min.js'></script> | |
<script type="text/javascript"> | |
//Set the url of the SPARQL endpoint | |
var url = 'http://opendatacommunities.org/sparql.json'; |