Skip to content

Commit

Permalink
ontology population code and documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
leilafedd committed Apr 26, 2023
1 parent a6658d1 commit 210e3d3
Show file tree
Hide file tree
Showing 208 changed files with 25,398 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[![DOI](https://zenodo.org/badge/520801122.svg)]()
[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://github.com/fusion-jena/GerPS-onto/blob/master/LICENSE)

# GerPS-onto: An ontology for German public service processes

- :books: [Documentation](https://w3id.org/GerPS-onto/ontology/)
- :hourglass_flowing_sand: [Download latest](https://doi.org/10.5281/zenodo.7845888)
- :page_facing_up: [SPARQL Queries](https://github.com/fusion-jena/GerPS-onto/tree/main/docs/SPARQL-queries.md)

GerPS-onto models the process of a German public service.
It was created by extending the [BBO](https://hal.science/hal-02365012/document) with some domain specific concepts.
In addition, some concepts are also mapped to the [e-Government Core Vocabularies](https://joinup.ec.europa.eu/collection/semantic-interoperability-community-semic/solution/e-government-core-vocabularies/about).
The ontology was automatically populated with an exemplary German public service by parsing XML-based ([XProzess](https://www.xrepository.de/details/urn:xoev-de:mv:em:standard:xprozess), [XDatenfelder](https://www.xrepository.de/details/urn:xoev-de:fim:standard:xdatenfelder)) files used for describing administrative BPMN-processes and form fields involved in executing the specific service.
The code for population with instances is available [here](https://github.com/fusion-jena/GerPS-onto/tree/main/ontology-population).
The ontology is exemplary populated with instances from a specific [German public service](https://fimportal.de/detail/L/99006028261000) and publicly available on [Zenodo](https://doi.org/10.5281/zenodo.7866314).

## License

This project is licensed under the [MIT License](https://github.com/fusion-jena/GerPS-onto/blob/master/LICENSE).
296 changes: 296 additions & 0 deletions docs/SPARQL-queries.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,296 @@
# SPARQL Queries

This is the list of sparql queries corresponding to the initially formulated competence questions

#### CQ1: Which *services* are offered?

```sparql
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX bbo: <http://BPMNbasedOntology#>
PREFIX gerps: <https://w3id.org/GerPS-onto/ontology#>
SELECT *
WHERE {
?Leistung rdf:type gerps:Leistung
}
```

[Result](https://github.com/fusion-jena/GerPS-onto/tree/main/docs/SPARQL-results/cq1.csv)

#### CQ2: Which *processes* are necessary to perform a *service*?

```sparql
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX bbo: <http://BPMNbasedOntology#>
PREFIX gerps: <https://w3id.org/GerPS-onto/ontology#>
SELECT ?Prozess
WHERE {
FILTER(?Leistung=gerps:99006028261000)
?Leistung gerps:hat_prozess ?Prozess.
}
```

[Result](https://github.com/fusion-jena/GerPS-onto/tree/main/docs/SPARQL-results/cq2.csv)

#### CQ3: Which *process steps* are necessary to perform a *service*?

```sparql
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX bbo: <http://BPMNbasedOntology#>
PREFIX gerps: <https://w3id.org/GerPS-onto/ontology#>
SELECT ?Prozessschritt
WHERE {
FILTER(?Leistung=gerps:99006028261000)
?Leistung gerps:hat_prozess ?Prozess.
?Prozess gerps:hat_prozessschritt ?Prozessschritt
}
```

[Result](https://github.com/fusion-jena/GerPS-onto/tree/main/docs/SPARQL-results/cq3.csv)

#### CQ4: What is the first/last *process step* of a *process*?

```sparql
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX bbo: <http://BPMNbasedOntology#>
PREFIX pro: <http://www.ProOnto.org/#>
PREFIX gerps: <https://w3id.org/GerPS-onto/ontology#>
SELECT ?erster_Prozessschritt ?letzter_Prozessschritt
WHERE {
?StartEvent rdf:type bbo:StartEvent.
?EndEvent rdf:type bbo:EndEvent.
?StartEvent bbo:has_nextFlowNode ?erster_Prozessschritt.
?EndEvent bbo:has_previousFlowNode ?letzter_Prozessschritt
}
```

[Result](https://github.com/fusion-jena/GerPS-onto/tree/main/docs/SPARQL-results/cq4.csv)

#### CQ5: Which *LeikaID* has a *service*?

```sparql
PREFIX pro: <http://purl.org/hpi/patchr#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX bbo: <http://BPMNbasedOntology#>
PREFIX gerps: <https://w3id.org/GerPS-onto/ontology#>
SELECT ?ID
WHERE {
FILTER(?Leistung=gerps:99006028261000)
?Leistung gerps:hat_leikaID ?ID
}
```

[Result](https://github.com/fusion-jena/GerPS-onto/tree/main/docs/SPARQL-results/cq5.csv)

#### CQ6: What is the *processing deadline* for a *process*?

```sparql
PREFIX pro: <http://purl.org/hpi/patchr#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX bbo: <http://BPMNbasedOntology#>
PREFIX gerps: <https://w3id.org/GerPS-onto/ontology#>
SELECT ?Bearbeitungsfrist
WHERE {
FILTER(?Prozess=gerps:prozess_99006028261000)
?Prozess gerps:hat_bearbeitungsfrist ?Bearbeitungsfrist
}
```

[Result](https://github.com/fusion-jena/GerPS-onto/tree/main/docs/SPARQL-results/cq6.csv)

#### CQ7: Which *resources/data fields/documents* are required to perform a *service*?

```sparql
PREFIX pro: <http://purl.org/hpi/patchr#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX bbo: <http://BPMNbasedOntology#>
PREFIX gerps: <https://w3id.org/GerPS-onto/ontology#>
SELECT DISTINCT ?Resource
WHERE {
FILTER(?Leistung=gerps:99006028261000)
?Leistung gerps:hat_prozess ?Prozess.
?Prozess gerps:hat_prozessschritt ?Prozessschritt.
?Prozessschritt gerps:hat_ressource ?Resource
}
```

[Result](https://github.com/fusion-jena/GerPS-onto/tree/main/docs/SPARQL-results/cq7.csv)

#### CQ8: What is the *submission deadline* of a *document*?

```sparql
PREFIX pro: <http://purl.org/hpi/patchr#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX bbo: <http://BPMNbasedOntology#>
PREFIX gerps: <https://w3id.org/GerPS-onto/ontology#>
SELECT *
WHERE {
?Dokument gerps:hat_abgabefrist ?Abgabefrist
}
```

[Result](https://github.com/fusion-jena/GerPS-onto/tree/main/docs/SPARQL-results/cq8.csv)

#### CQ9: Which *data field ID* does a *data field* have?

```sparql
PREFIX pro: <http://purl.org/hpi/patchr#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX bbo: <http://BPMNbasedOntology#>
PREFIX gerps: <https://w3id.org/GerPS-onto/ontology#>
SELECT *
WHERE {
?Datenfeld gerps:hat_datenfeldID ?ID.
}
```

[Result](https://github.com/fusion-jena/GerPS-onto/tree/main/docs/SPARQL-results/cq9.csv)

#### CQ10: Which *actor(s)/main actor(s)/result receiver(s)/contributor(s)* execute(s) which *processes*?

```sparql
PREFIX pro: <http://purl.org/hpi/patchr#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX bbo: <http://BPMNbasedOntology#>
PREFIX gerps: <https://w3id.org/GerPS-onto/ontology#>
SELECT DISTINCT *
WHERE {
?Akteur gerps:fuehrt_aus ?Prozess
}
```

[Result](https://github.com/fusion-jena/GerPS-onto/tree/main/docs/SPARQL-results/cq10.csv)

#### CQ11: Which *actor(s)/main actor(s) /result receiver(s) /contributor(s)* participate(s) in which *steps* of the *process*?

```sparql
PREFIX pro: <http://purl.org/hpi/patchr#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX bbo: <http://BPMNbasedOntology#>
PREFIX gerps: <https://w3id.org/GerPS-onto/ontology#>
SELECT DISTINCT *
WHERE {
?Akteur gerps:beteiligt_sich_an ?Prozessschritt
}
```

[Result](https://github.com/fusion-jena/GerPS-onto/tree/main/docs/SPARQL-results/cq11.csv)

#### CQ12: On which *legal basis* is a *process* based?

```sparql
PREFIX pro: <http://purl.org/hpi/patchr#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX bbo: <http://BPMNbasedOntology#>
PREFIX gerps: <https://w3id.org/GerPS-onto/ontology#>
SELECT DISTINCT ?Handlungsgrundlage
WHERE {
?Prozess gerps:hat_prozessschritt ?Prozessschritt.
?Prozess gerps:hat_leikaID "99006028261000".
?Prozessschritt gerps:basiert_auf ?Handlungsgrundlage
}
```

[Result](https://github.com/fusion-jena/GerPS-onto/tree/main/docs/SPARQL-results/cq12.csv)

#### CQ13: On what *legal basis* is which *process step* based?

```sparql
PREFIX pro: <http://purl.org/hpi/patchr#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX bbo: <http://BPMNbasedOntology#>
PREFIX gerps: <https://w3id.org/GerPS-onto/ontology#>
SELECT *
WHERE {
?Prozessschritt a gerps:Prozessschritt.
?Prozessschritt gerps:basiert_auf ?Handlungsgrundlage
}
```

[Result](https://github.com/fusion-jena/GerPS-onto/tree/main/docs/SPARQL-results/cq13.csv)

#### CQ14: What *reference activity groups* does a *process* include?

```sparql
PREFIX pro: <http://purl.org/hpi/patchr#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX bbo: <http://BPMNbasedOntology#>
PREFIX gerps: <https://w3id.org/GerPS-onto/ontology#>
SELECT DISTINCT ?RAG
WHERE {
?prozess a gerps:Prozess.
?prozess gerps:hat_leikaID "99006028261000".
?prozess gerps:hat_prozessschritt ?Prozessschritt .
?Prozessschritt gerps:hat_typ ?RAG
}
```

[Result](https://github.com/fusion-jena/GerPS-onto/tree/main/docs/SPARQL-results/cq14.csv)

#### CQ15: Which *reference activity group* corresponds to which *process step*?

```sparql
PREFIX pro: <http://purl.org/hpi/patchr#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX bbo: <http://BPMNbasedOntology#>
PREFIX gerps: <https://w3id.org/GerPS-onto/ontology#>
SELECT *
WHERE {
?Prozessschritt gerps:hat_typ ?RAG
}
```

[Result](https://github.com/fusion-jena/GerPS-onto/tree/main/docs/SPARQL-results/cq15.csv)
2 changes: 2 additions & 0 deletions docs/SPARQL-results/cq1.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Leistung
https://w3id.org/GerPS-onto/ontology#99006028261000
4 changes: 4 additions & 0 deletions docs/SPARQL-results/cq10.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
"Akteur,""Prozess"""
"https://w3id.org/GerPS-onto/ontology#_39239818-2743-4f19-9e03-89d271189b85,""https://w3id.org/GerPS-onto/ontology#process_99006028261000_786448c6-b1c1-458f-a854-5cb8d069e5fc"""
"https://w3id.org/GerPS-onto/ontology#_4e56a483-ecbe-4104-a63c-3c63cbb55e2d,""https://w3id.org/GerPS-onto/ontology#process_99006028261000_786448c6-b1c1-458f-a854-5cb8d069e5fc"""
"https://w3id.org/GerPS-onto/ontology#_acad2737-c516-4d97-8dfd-45605e058d86,""https://w3id.org/GerPS-onto/ontology#process_99006028261000_786448c6-b1c1-458f-a854-5cb8d069e5fc"""
15 changes: 15 additions & 0 deletions docs/SPARQL-results/cq11.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
"Akteur,""Prozessschritt"""
"https://w3id.org/GerPS-onto/ontology#_39239818-2743-4f19-9e03-89d271189b85,""https://w3id.org/GerPS-onto/ontology#99006028261000_89fe1dcd-0a22-4d4e-8def-7a0b24e87884"""
"https://w3id.org/GerPS-onto/ontology#_39239818-2743-4f19-9e03-89d271189b85,""https://w3id.org/GerPS-onto/ontology#99006028261000_28441394-6afd-4633-8f4f-6cce9cd4ffc9"""
"https://w3id.org/GerPS-onto/ontology#_acad2737-c516-4d97-8dfd-45605e058d86,""https://w3id.org/GerPS-onto/ontology#99006028261000_b8ef8c75-ef39-413e-86b5-221eafe22861"""
"https://w3id.org/GerPS-onto/ontology#_39239818-2743-4f19-9e03-89d271189b85,""https://w3id.org/GerPS-onto/ontology#99006028261000_3a5bc1b5-61f4-4d4c-af7f-b1728f919b38"""
"https://w3id.org/GerPS-onto/ontology#_acad2737-c516-4d97-8dfd-45605e058d86,""https://w3id.org/GerPS-onto/ontology#99006028261000_c41df7c7-e31c-46a3-a43b-f294f495378f"""
"https://w3id.org/GerPS-onto/ontology#_39239818-2743-4f19-9e03-89d271189b85,""https://w3id.org/GerPS-onto/ontology#99006028261000_f8b43c65-cc8a-4064-ab39-b77e8db5cd4b"""
"https://w3id.org/GerPS-onto/ontology#_39239818-2743-4f19-9e03-89d271189b85,""https://w3id.org/GerPS-onto/ontology#99006028261000_8d7df6f8-49b7-4ae0-997c-022d68640330"""
"https://w3id.org/GerPS-onto/ontology#_39239818-2743-4f19-9e03-89d271189b85,""https://w3id.org/GerPS-onto/ontology#99006028261000_c44a10cf-0b69-481b-b36c-69a0f7641161"""
"https://w3id.org/GerPS-onto/ontology#_39239818-2743-4f19-9e03-89d271189b85,""https://w3id.org/GerPS-onto/ontology#99006028261000_4476807b-2e49-4a15-ad62-9f3fee43b40a"""
"https://w3id.org/GerPS-onto/ontology#_39239818-2743-4f19-9e03-89d271189b85,""https://w3id.org/GerPS-onto/ontology#99006028261000_1169fb06-dae2-43c5-83fd-8e9a241f5a3c"""
"https://w3id.org/GerPS-onto/ontology#_39239818-2743-4f19-9e03-89d271189b85,""https://w3id.org/GerPS-onto/ontology#99006028261000_8e994dc4-84d6-4089-9eeb-260268e6fb8a"""
"https://w3id.org/GerPS-onto/ontology#_39239818-2743-4f19-9e03-89d271189b85,""https://w3id.org/GerPS-onto/ontology#99006028261000_0facbbd5-88a0-4989-aaf4-d38437a69ba2"""
"https://w3id.org/GerPS-onto/ontology#_39239818-2743-4f19-9e03-89d271189b85,""https://w3id.org/GerPS-onto/ontology#99006028261000_c15dd7d3-7d90-45f5-997d-0fee2128ca36"""
"https://w3id.org/GerPS-onto/ontology#_39239818-2743-4f19-9e03-89d271189b85,""https://w3id.org/GerPS-onto/ontology#99006028261000_94d87600-bd90-41e3-95c9-9c8e5bea706c"""
7 changes: 7 additions & 0 deletions docs/SPARQL-results/cq12.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
"Handlungsgrundlage"
"http://www.gesetze-im-internet.de/muschg_2018/__27.html"
"https://www.gesetze-im-internet.de/vwvfg/__3.html"
"http://www.gesetze-im-internet.de/muschg_2018/__32.html"
"https://www.gesetze-im-internet.de/vwvfg/__25.html"
"http://www.gesetze-im-internet.de/muschg_2018/__29.html"
"https://www.gesetze-im-internet.de/arbschg/__5.html"
16 changes: 16 additions & 0 deletions docs/SPARQL-results/cq13.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
"Prozessschritt,""Handlungsgrundlage"""
"https://w3id.org/GerPS-onto/ontology#99006028261000_89fe1dcd-0a22-4d4e-8def-7a0b24e87884,""http://www.gesetze-im-internet.de/muschg_2018/__27.html"""
"https://w3id.org/GerPS-onto/ontology#99006028261000_28441394-6afd-4633-8f4f-6cce9cd4ffc9,""https://www.gesetze-im-internet.de/vwvfg/__3.html"""
"https://w3id.org/GerPS-onto/ontology#99006028261000_3a5bc1b5-61f4-4d4c-af7f-b1728f919b38,""http://www.gesetze-im-internet.de/muschg_2018/__27.html"""
"https://w3id.org/GerPS-onto/ontology#99006028261000_f8b43c65-cc8a-4064-ab39-b77e8db5cd4b,""http://www.gesetze-im-internet.de/muschg_2018/__27.html"""
"https://w3id.org/GerPS-onto/ontology#99006028261000_8d7df6f8-49b7-4ae0-997c-022d68640330,""http://www.gesetze-im-internet.de/muschg_2018/__32.html"""
"https://w3id.org/GerPS-onto/ontology#99006028261000_c44a10cf-0b69-481b-b36c-69a0f7641161,""http://www.gesetze-im-internet.de/muschg_2018/__27.html"""
"https://w3id.org/GerPS-onto/ontology#99006028261000_4476807b-2e49-4a15-ad62-9f3fee43b40a,""https://www.gesetze-im-internet.de/vwvfg/__25.html"""
"https://w3id.org/GerPS-onto/ontology#99006028261000_1169fb06-dae2-43c5-83fd-8e9a241f5a3c,""http://www.gesetze-im-internet.de/muschg_2018/__29.html"""
"https://w3id.org/GerPS-onto/ontology#99006028261000_8e994dc4-84d6-4089-9eeb-260268e6fb8a,""http://www.gesetze-im-internet.de/muschg_2018/__27.html"""
"https://w3id.org/GerPS-onto/ontology#99006028261000_8e994dc4-84d6-4089-9eeb-260268e6fb8a,""http://www.gesetze-im-internet.de/muschg_2018/__29.html"""
"https://w3id.org/GerPS-onto/ontology#99006028261000_8e994dc4-84d6-4089-9eeb-260268e6fb8a,""https://www.gesetze-im-internet.de/arbschg/__5.html"""
"https://w3id.org/GerPS-onto/ontology#99006028261000_0facbbd5-88a0-4989-aaf4-d38437a69ba2,""http://www.gesetze-im-internet.de/muschg_2018/__29.html"""
"https://w3id.org/GerPS-onto/ontology#99006028261000_c15dd7d3-7d90-45f5-997d-0fee2128ca36,""http://www.gesetze-im-internet.de/muschg_2018/__27.html"""
"https://w3id.org/GerPS-onto/ontology#99006028261000_c15dd7d3-7d90-45f5-997d-0fee2128ca36,""http://www.gesetze-im-internet.de/muschg_2018/__29.html"""
"https://w3id.org/GerPS-onto/ontology#99006028261000_94d87600-bd90-41e3-95c9-9c8e5bea706c,""http://www.gesetze-im-internet.de/muschg_2018/__32.html"""
7 changes: 7 additions & 0 deletions docs/SPARQL-results/cq14.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
RAG
https://w3id.org/GerPS-onto/ontology#RAG2
https://w3id.org/GerPS-onto/ontology#RAG3
https://w3id.org/GerPS-onto/ontology#RAG7
https://w3id.org/GerPS-onto/ontology#RAG1
https://w3id.org/GerPS-onto/ontology#RAG4
https://w3id.org/GerPS-onto/ontology#RAG5
13 changes: 13 additions & 0 deletions docs/SPARQL-results/cq15.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
"Prozessschritt,""RAG"""
"https://w3id.org/GerPS-onto/ontology#99006028261000_c44a10cf-0b69-481b-b36c-69a0f7641161,""https://w3id.org/GerPS-onto/ontology#RAG1"""
"https://w3id.org/GerPS-onto/ontology#99006028261000_89fe1dcd-0a22-4d4e-8def-7a0b24e87884,""https://w3id.org/GerPS-onto/ontology#RAG2"""
"https://w3id.org/GerPS-onto/ontology#99006028261000_8d7df6f8-49b7-4ae0-997c-022d68640330,""https://w3id.org/GerPS-onto/ontology#RAG2"""
"https://w3id.org/GerPS-onto/ontology#99006028261000_4476807b-2e49-4a15-ad62-9f3fee43b40a,""https://w3id.org/GerPS-onto/ontology#RAG2"""
"https://w3id.org/GerPS-onto/ontology#99006028261000_0facbbd5-88a0-4989-aaf4-d38437a69ba2,""https://w3id.org/GerPS-onto/ontology#RAG2"""
"https://w3id.org/GerPS-onto/ontology#99006028261000_3a5bc1b5-61f4-4d4c-af7f-b1728f919b38,""https://w3id.org/GerPS-onto/ontology#RAG7"""
"https://w3id.org/GerPS-onto/ontology#99006028261000_8e994dc4-84d6-4089-9eeb-260268e6fb8a,""https://w3id.org/GerPS-onto/ontology#RAG7"""
"https://w3id.org/GerPS-onto/ontology#99006028261000_28441394-6afd-4633-8f4f-6cce9cd4ffc9,""https://w3id.org/GerPS-onto/ontology#RAG3"""
"https://w3id.org/GerPS-onto/ontology#99006028261000_f8b43c65-cc8a-4064-ab39-b77e8db5cd4b,""https://w3id.org/GerPS-onto/ontology#RAG3"""
"https://w3id.org/GerPS-onto/ontology#99006028261000_94d87600-bd90-41e3-95c9-9c8e5bea706c,""https://w3id.org/GerPS-onto/ontology#RAG5"""
"https://w3id.org/GerPS-onto/ontology#99006028261000_1169fb06-dae2-43c5-83fd-8e9a241f5a3c,""https://w3id.org/GerPS-onto/ontology#RAG4"""
"https://w3id.org/GerPS-onto/ontology#99006028261000_c15dd7d3-7d90-45f5-997d-0fee2128ca36,""https://w3id.org/GerPS-onto/ontology#RAG4"""
2 changes: 2 additions & 0 deletions docs/SPARQL-results/cq2.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Prozess
https://w3id.org/GerPS-onto/ontology#process_99006028261000_786448c6-b1c1-458f-a854-5cb8d069e5fc
Loading

0 comments on commit 210e3d3

Please sign in to comment.