Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -364,3 +364,16 @@ FodyWeavers.xsd

# Local configuration files
appsettings.Development.json

# Ontop deployment files with credentials (use Key Vault instead)
ontop/deploy-aci-simple.yaml
ontop/test-azure.properties
ontop/jdbc/*.jar

# Allow template files but ignore filled-in deployment files
ontop/deploy-aci.yaml
ontop/deploy-aci.json
!ontop/deploy-aci.template.json

# Archived documentation (superseded by docs/ folder)
ontop/docs-archive/
6 changes: 5 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,9 @@
"**/bin": true,
"**/obj": true
},
"dotnet.preferCSharpExtension": true
"dotnet.preferCSharpExtension": true,
"chat.tools.terminal.autoApprove": {
"docker-compose": true,
"docker run": true
}
}
2 changes: 1 addition & 1 deletion Bruno/OLI-it_Nulllogicone/Angler--guid-.bru
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
meta {
name: Angler/<guid>
type: http
seq: 7
seq: 6
}

get {
Expand Down
20 changes: 20 additions & 0 deletions Bruno/OLI-it_Nulllogicone/GET SPARQL.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
meta {
name: GET SPARQL
type: http
seq: 8
}

get {
url: {{host}}/sparql
body: none
auth: inherit
}

headers {
Accept: application/sparql-results+json
}

settings {
encodeUrl: true
timeout: 0
}
2 changes: 1 addition & 1 deletion Bruno/OLI-it_Nulllogicone/PostIt--guid-.bru
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
meta {
name: PostIt/<guid>
type: http
seq: 8
seq: 7
}

get {
Expand Down
29 changes: 29 additions & 0 deletions Bruno/OLI-it_Nulllogicone/SPARQL Count Entities.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
meta {
name: SPARQL Count Entities
type: http
seq: 21
}

post {
url: {{host}}/sparql
body: text
auth: inherit
}

headers {
Content-Type: application/sparql-query
Accept: text/csv
}

body:text {
PREFIX nlo: <http://nulllogicone.net/schema.rdfs#>

SELECT ?type (COUNT(*) as ?count)
WHERE { ?entity a ?type . }
GROUP BY ?type ORDER BY DESC(?count)
}

settings {
encodeUrl: true
timeout: 0
}
36 changes: 36 additions & 0 deletions Bruno/OLI-it_Nulllogicone/SPARQL complex join (readable).bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
meta {
name: SPARQL complex join (readable)
type: http
seq: 19
}

post {
url: {{host}}/sparql
body: text
auth: inherit
}

headers {
Content-Type: application/sparql-query
Accept: application/sparql-results+json
}

body:text {
PREFIX nlo: <http://nulllogicone.net/schema.rdfs#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>

# Complex join: Stamm -> Angler -> Loch -> Netz/Knoten
SELECT ?stammName ?anglerName
WHERE {
?stamm rdf:type nlo:Stamm ;
nlo:name ?stammName ;
nlo:hasAngler ?angler .
?angler nlo:name ?anglerName ;
}
LIMIT 100
}

settings {
encodeUrl: true
timeout: 0
}
46 changes: 46 additions & 0 deletions Bruno/OLI-it_Nulllogicone/SPARQL construct (readable).bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
meta {
name: SPARQL construct (readable)
type: http
seq: 21
}

post {
url: {{host}}/sparql
body: text
auth: inherit
}

headers {
Content-Type: application/sparql-query
Accept: text/turtle
}

body:text {
PREFIX nlo: <http://nulllogicone.net/schema.rdfs#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>

# Build RDF graph for Stamm with Anglers
CONSTRUCT {
?stamm rdf:type nlo:Stamm ;
nlo:name ?name ;
nlo:email ?email ;
nlo:hasAngler ?angler .
?angler rdf:type nlo:Angler ;
nlo:name ?anglerName .
}
WHERE {
?stamm rdf:type nlo:Stamm ;
nlo:name ?name ;
nlo:email ?email .
OPTIONAL {
?stamm nlo:hasAngler ?angler .
?angler nlo:name ?anglerName .
}
}
LIMIT 10
}

settings {
encodeUrl: true
timeout: 0
}
36 changes: 36 additions & 0 deletions Bruno/OLI-it_Nulllogicone/SPARQL count CSV.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
meta {
name: SPARQL count CSV
type: http
seq: 24
}

post {
url: {{host}}/sparql
body: text
auth: inherit
}

headers {
Content-Type: application/sparql-query
Accept: text/csv
}

body:text {
PREFIX nlo: <http://nulllogicone.net/schema.rdfs#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>

# Count entities by type - CSV format
SELECT ?type (COUNT(?entity) as ?count)
WHERE {
?entity rdf:type ?type .
FILTER(?type IN (nlo:Stamm, nlo:Angler, nlo:PostIt, nlo:Code, nlo:TopLab,
nlo:Ring, nlo:Loch, nlo:Netz, nlo:Knoten, nlo:Baum, nlo:Zweig))
}
GROUP BY ?type
ORDER BY DESC(?count)
}

settings {
encodeUrl: true
timeout: 0
}
36 changes: 36 additions & 0 deletions Bruno/OLI-it_Nulllogicone/SPARQL count by type (readable).bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
meta {
name: SPARQL count by type (readable)
type: http
seq: 20
}

post {
url: {{host}}/sparql
body: text
auth: inherit
}

headers {
Content-Type: application/sparql-query
Accept: application/sparql-results+json
}

body:text {
PREFIX nlo: <http://nulllogicone.net/schema.rdfs#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>

# Count entities by type
SELECT ?type (COUNT(?entity) as ?count)
WHERE {
?entity rdf:type ?type .
FILTER(?type IN (nlo:Stamm, nlo:Angler, nlo:PostIt, nlo:Code, nlo:TopLab,
nlo:Ring, nlo:Loch, nlo:Netz, nlo:Knoten, nlo:Baum, nlo:Zweig))
}
GROUP BY ?type
ORDER BY DESC(?count)
}

settings {
encodeUrl: true
timeout: 0
}
16 changes: 16 additions & 0 deletions Bruno/OLI-it_Nulllogicone/SPARQL examples.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
meta {
name: SPARQL examples
type: http
seq: 10
}

get {
url: {{host}}/sparql/examples
body: none
auth: inherit
}

settings {
encodeUrl: true
timeout: 0
}
16 changes: 16 additions & 0 deletions Bruno/OLI-it_Nulllogicone/SPARQL health.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
meta {
name: SPARQL health
type: http
seq: 11
}

get {
url: {{host}}/sparql/health
body: none
auth: inherit
}

settings {
encodeUrl: true
timeout: 0
}
48 changes: 48 additions & 0 deletions Bruno/OLI-it_Nulllogicone/SPARQL ring-loch matching (readable).bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
meta {
name: SPARQL ring-loch matching (readable)
type: http
seq: 22
}

post {
url: {{host}}/sparql
body: text
auth: inherit
}

headers {
Content-Type: application/sparql-query
Accept: application/sparql-results+json
}

body:text {
PREFIX nlo: <http://nulllogicone.net/schema.rdfs#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>

# Find matching patterns: Code (Ring) vs Angler (Loch) in same Netz
SELECT ?codeBeschreibung ?anglerName ?netzName
?ringOlis ?ringGet ?lochIlos ?lochFit
WHERE {
?code rdf:type nlo:Code ;
nlo:beschreibung ?codeBeschreibung ;
nlo:ring ?ring .
?ring nlo:netz ?netz ;
nlo:olis ?ringOlis ;
nlo:get ?ringGet .

?angler rdf:type nlo:Angler ;
nlo:name ?anglerName ;
nlo:loch ?loch .
?loch nlo:netz ?netz ;
nlo:ilos ?lochIlos ;
nlo:fit ?lochFit .

?netz nlo:name ?netzName .
}
LIMIT 100
}

settings {
encodeUrl: true
timeout: 0
}
16 changes: 16 additions & 0 deletions Bruno/OLI-it_Nulllogicone/SPARQL schema.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
meta {
name: SPARQL schema
type: http
seq: 12
}

get {
url: {{host}}/sparql/schema
body: none
auth: inherit
}

settings {
encodeUrl: true
timeout: 0
}
35 changes: 35 additions & 0 deletions Bruno/OLI-it_Nulllogicone/SPARQL stamm (readable).bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
meta {
name: SPARQL stamm (readable)
type: http
seq: 18
}

post {
url: {{host}}/sparql
body: text
auth: inherit
}

headers {
Content-Type: application/sparql-query
Accept: application/sparql-results+json
}

body:text {
PREFIX nlo: <http://nulllogicone.net/schema.rdfs#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>

SELECT ?stamm ?name ?email ?tel
WHERE {
?stamm rdf:type nlo:Stamm ;
nlo:name ?name ;
nlo:email ?email .
OPTIONAL { ?stamm nlo:tel ?tel }
}
LIMIT 100
}

settings {
encodeUrl: true
timeout: 0
}
Loading
Loading