Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vemonet/sparql-operations-action
Action to execute SPARQL operations using RDF4J
https://github.com/vemonet/sparql-operations-action
rdf4j sparql sparql-query
Last synced: 10 days ago
JSON representation
Action to execute SPARQL operations using RDF4J
- Host: GitHub
- URL: https://github.com/vemonet/sparql-operations-action
- Owner: vemonet
- License: mit
- Created: 2020-06-10T01:43:06.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-04-12T01:05:34.000Z (almost 4 years ago)
- Last Synced: 2024-04-17T04:59:20.844Z (9 months ago)
- Topics: rdf4j, sparql, sparql-query
- Language: Shell
- Homepage: https://github.com/marketplace/actions/sparql-operations
- Size: 9.77 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Run the [d2s-sparql-operations](https://github.com/MaastrichtU-IDS/d2s-sparql-operations) tool to perform operations on SPARQL endpoints using RDF4J (SPARQL query, split statements...).
Use Docker Image from https://github.com/MaastrichtU-IDS/d2s-sparql-operations
## Usage
### Upload RDF from local folder
```yaml
- uses: MaastrichtU-IDS/sparql-operations-action@v1
with:
operation: upload
file: my-folder/*.ttl
endpoint: https://graphdb.ontotext.com/repositories/test/statements
user: ${{ secrets.SPARQL_USER }}
password: ${{ secrets.SPARQL_PASSWORD }}
inputvar: https://w3id.org/d2s/graph/geonames
outputvar: https://w3id.org/d2s/metadata
servicevar: http://localhost:7200/repositories/test-vincent
```### Execute Insert queries using local folder
```yaml
- uses: MaastrichtU-IDS/sparql-operations-action@v1
with:
file: folder-with-rq-files/
endpoint: https://graphdb.ontotext.com/repositories/test/statements
user: ${{ secrets.SPARQL_USER }}
password: ${{ secrets.SPARQL_PASSWORD }}
```> All `.rq` files in the provided folder will be executed.
### Execute Insert queries using GitHub URL
And provide variables for the SPARQL query (input, output and service) which will be replaced at execution time.
```yaml
- uses: MaastrichtU-IDS/sparql-operations-action@v1
with:
file: https://github.com/MaastrichtU-IDS/d2s-scripts-repository/tree/master/sparql/compute-hcls-stats
endpoint: https://graphdb.ontotext.com/repositories/test/statements
user: ${{ secrets.SPARQL_USER }}
password: ${{ secrets.SPARQL_PASSWORD }}
inputvar: https://w3id.org/d2s/graph/geonames
outputvar: https://w3id.org/d2s/metadata
servicevar: http://localhost:7200/repositories/test-vincent
```### Provide SPARQL query in param
```yaml
- uses: MaastrichtU-IDS/sparql-operations-action@v1
with:
query: "select * where {?s a ?type .} limit 100"
endpoint: https://graphdb.ontotext.com/repositories/test/statements
user: ${{ secrets.SPARQL_USER }}
password: ${{ secrets.SPARQL_PASSWORD }}
```