From ea82d96615fddf6aae881be44bfe66a15c12f987 Mon Sep 17 00:00:00 2001 From: Roger Rutishauser Date: Thu, 3 Oct 2024 19:45:41 +0200 Subject: [PATCH] rdf --- sparql/README.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/sparql/README.md b/sparql/README.md index 9a24226..710ef0b 100644 --- a/sparql/README.md +++ b/sparql/README.md @@ -10,7 +10,7 @@ include_toc: true #### Finde alle Classes -``` +``` turtle PREFIX rdf: SELECT DISTINCT ?type WHERE { @@ -20,7 +20,7 @@ WHERE { #### Finde alle Classes mit bestimmten Prefix -``` +``` turtle PREFIX bc: SELECT DISTINCT ?type WHERE { @@ -31,14 +31,14 @@ WHERE { #### Select all Triples -``` +``` turtle select ?s ?p ?o where {?s ?p ?o} ``` #### Select Triples with rdf:type as ?p -``` +``` turtle select ?s ?p ?o where { ?s rdf:type ?o . @@ -47,7 +47,7 @@ where { #### Select Triples with rdf:type and multiple ?o -``` +``` turtle select ?s ?p ?o where { values ?o { } @@ -57,7 +57,7 @@ where { #### Count -``` +``` turtle prefix rico: SELECT (count (?c) as ?cCount) WHERE { @@ -69,7 +69,7 @@ WHERE { #### Select resource with needle in 2nd level of haystack -``` +``` turtle prefix rico: SELECT ?s WHERE { @@ -83,7 +83,7 @@ WHERE { #### Events zwischen Start- und Enddatum -``` +``` turtle # Events zwischen Start- und Enddatum # *********************************** prefix rdf: @@ -143,7 +143,7 @@ order by desc(?dateend) ### RANDOM select example 1 -``` +``` turtle # select all unitdate values of any resource prefix rico: @@ -169,7 +169,7 @@ ORDER BY ASC (?resource) ### Delete Triples where ?s ?p ?o contains string -``` +``` turtle DELETE { ?s ?p ?o } WHERE