rdf
This commit is contained in:
parent
873a9f9dd2
commit
ea82d96615
@ -10,7 +10,7 @@ include_toc: true
|
|||||||
|
|
||||||
#### Finde alle Classes
|
#### Finde alle Classes
|
||||||
|
|
||||||
```
|
``` turtle
|
||||||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
||||||
SELECT DISTINCT ?type
|
SELECT DISTINCT ?type
|
||||||
WHERE {
|
WHERE {
|
||||||
@ -20,7 +20,7 @@ WHERE {
|
|||||||
|
|
||||||
#### Finde alle Classes mit bestimmten Prefix
|
#### Finde alle Classes mit bestimmten Prefix
|
||||||
|
|
||||||
```
|
``` turtle
|
||||||
PREFIX bc: <http://base22.com/ont/bc#>
|
PREFIX bc: <http://base22.com/ont/bc#>
|
||||||
SELECT DISTINCT ?type
|
SELECT DISTINCT ?type
|
||||||
WHERE {
|
WHERE {
|
||||||
@ -31,14 +31,14 @@ WHERE {
|
|||||||
|
|
||||||
#### Select all Triples
|
#### Select all Triples
|
||||||
|
|
||||||
```
|
``` turtle
|
||||||
select ?s ?p ?o
|
select ?s ?p ?o
|
||||||
where {?s ?p ?o}
|
where {?s ?p ?o}
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Select Triples with rdf:type as ?p
|
#### Select Triples with rdf:type as ?p
|
||||||
|
|
||||||
```
|
``` turtle
|
||||||
select ?s ?p ?o
|
select ?s ?p ?o
|
||||||
where {
|
where {
|
||||||
?s rdf:type ?o .
|
?s rdf:type ?o .
|
||||||
@ -47,7 +47,7 @@ where {
|
|||||||
|
|
||||||
#### Select Triples with rdf:type and multiple ?o
|
#### Select Triples with rdf:type and multiple ?o
|
||||||
|
|
||||||
```
|
``` turtle
|
||||||
select ?s ?p ?o
|
select ?s ?p ?o
|
||||||
where {
|
where {
|
||||||
values ?o { <http://fedora.info/definitions/v4/repository#ArchivalGroup> <http://www.loc.gov/premis/rdf/v3/File> }
|
values ?o { <http://fedora.info/definitions/v4/repository#ArchivalGroup> <http://www.loc.gov/premis/rdf/v3/File> }
|
||||||
@ -57,7 +57,7 @@ where {
|
|||||||
|
|
||||||
#### Count
|
#### Count
|
||||||
|
|
||||||
```
|
``` turtle
|
||||||
prefix rico: <https://www.ica.org/standards/RiC/ontology#>
|
prefix rico: <https://www.ica.org/standards/RiC/ontology#>
|
||||||
SELECT (count (?c) as ?cCount)
|
SELECT (count (?c) as ?cCount)
|
||||||
WHERE {
|
WHERE {
|
||||||
@ -69,7 +69,7 @@ WHERE {
|
|||||||
|
|
||||||
#### Select resource with needle in 2nd level of haystack
|
#### Select resource with needle in 2nd level of haystack
|
||||||
|
|
||||||
```
|
``` turtle
|
||||||
prefix rico: <https://www.ica.org/standards/RiC/ontology#>
|
prefix rico: <https://www.ica.org/standards/RiC/ontology#>
|
||||||
SELECT ?s
|
SELECT ?s
|
||||||
WHERE {
|
WHERE {
|
||||||
@ -83,7 +83,7 @@ WHERE {
|
|||||||
|
|
||||||
#### Events zwischen Start- und Enddatum
|
#### Events zwischen Start- und Enddatum
|
||||||
|
|
||||||
```
|
``` turtle
|
||||||
# Events zwischen Start- und Enddatum
|
# Events zwischen Start- und Enddatum
|
||||||
# ***********************************
|
# ***********************************
|
||||||
prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
||||||
@ -143,7 +143,7 @@ order by desc(?dateend)
|
|||||||
|
|
||||||
### RANDOM select example 1
|
### RANDOM select example 1
|
||||||
|
|
||||||
```
|
``` turtle
|
||||||
# select all unitdate values of any resource
|
# select all unitdate values of any resource
|
||||||
|
|
||||||
prefix rico: <https://www.ica.org/standards/RiC/ontology#>
|
prefix rico: <https://www.ica.org/standards/RiC/ontology#>
|
||||||
@ -169,7 +169,7 @@ ORDER BY ASC (?resource)
|
|||||||
|
|
||||||
### Delete Triples where ?s ?p ?o contains string
|
### Delete Triples where ?s ?p ?o contains string
|
||||||
|
|
||||||
```
|
``` turtle
|
||||||
DELETE
|
DELETE
|
||||||
{ ?s ?p ?o }
|
{ ?s ?p ?o }
|
||||||
WHERE
|
WHERE
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user