| 483 | === SPARQL queries === |
| 484 | |
| 485 | Once loaded in a SPARQL endpoint, the catalogue content could be queried using SPARQL: |
| 486 | |
| 487 | * Get metadata titles |
| 488 | {{{ |
| 489 | sparql select ?title where {?s <http://purl.org/dc/elements/1.1/title> ?title}; |
| 490 | }}} |
| 491 | |
| 492 | * Get metadata about transport network |
| 493 | {{{ |
| 494 | sparql |
| 495 | PREFIX dc: <http://purl.org/dc/elements/1.1/> |
| 496 | PREFIX dcat: <http://www.w3.org/ns/dcat#> |
| 497 | PREFIX skos: <http://www.w3.org/2004/02/skos/core#> |
| 498 | SELECT ?title, ?label |
| 499 | WHERE { ?x dc:title ?title . |
| 500 | ?x dcat:theme ?theme . |
| 501 | ?theme skos:prefLabel ?label |
| 502 | FILTER(?label = "Transport network") |
| 503 | }; |
| 504 | }}} |