Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/abbe98/soch-sparql-query-library
This repository contains a collection of SPARQL queries made for Swedish Open Cultural Heritage/K-samsök. It comes with an basic API built for the SPARQL editor Thor.
https://github.com/abbe98/soch-sparql-query-library
k-samsok soch sparql-editor
Last synced: 3 days ago
JSON representation
This repository contains a collection of SPARQL queries made for Swedish Open Cultural Heritage/K-samsök. It comes with an basic API built for the SPARQL editor Thor.
- Host: GitHub
- URL: https://github.com/abbe98/soch-sparql-query-library
- Owner: Abbe98
- Created: 2019-05-01T19:11:27.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-12-02T10:22:22.000Z (about 4 years ago)
- Last Synced: 2024-12-12T20:46:41.272Z (10 days ago)
- Topics: k-samsok, soch, sparql-editor
- Language: R
- Homepage: https://byabbe.se/soch-sparql-query-library/queries.json
- Size: 22.5 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SOCH SPARQL Query Library
This repository contains a collection of SPARQL queries made for Swedish Open Cultural Heritage/K-samsök. It comes with an basic API built for the SPARQL editor [Thor](https://github.com/Abbe98/thor).
## Adding your own query
Add a new file to the `queries` directory and format your file as show below. Both a title and tags are mandatory:
```sparql
#title: Get all References: Kungshögarna
#tags: monuments,fmis,referencesPREFIX soch:
PREFIX fmis:SELECT ?refs WHERE {
fmis:10028201230001 soch:itemDescription ?description_node .
?description_node soch:type "Referenser" .
?description_node soch:desc ?refs .
}
```## Generating JSON
You can generate the API/JSON file by running the following from root.
```bash
python generate_json.py
```