A set of SPARQL examples that are used in different TGX resources
Returns the title of the dataset, creation date, and license.
PREFIX void: <http://rdfs.org/ns/void#>
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX pav: <http://purl.org/pav/>
SELECT DISTINCT ?dataset (str(?titleLit) as ?title) ?date ?license
WHERE {
?dataset a void:Dataset ;
dcterms:title ?titleLit ;
dcterms:license ?license ;
pav:createdOn ?date .
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?dataset"):::projected
v4("?date"):::projected
v3("?license"):::projected
v5("?title")
v2("?titleLit"):::projected
c2(["void:Dataset"]):::iri
v1 --"a"--> c2
v1 --"dcterms:title"--> v2
v1 --"dcterms:license"--> v3
v1 --"pav:createdOn"--> v4
bind0[/"str(?titleLit)"/]
v2 --o bind0
bind0 --as--o v5