No project description provided
Project description
RDFIngest
RDFIngest - A simple tool for ingesting local and remote RDF data sources into a triplestore.
Requirements
- Python >= 3.11
Installation
Usage
RDFIngest reads two YAML files:
- a config file for obtaining triplestore credentials and
- a registry which defines the RDF sources to be ingested.
Example config:
service:
endpoint: "https://sometriplestore.endpoint"
user: "admin"
password: "supersecretpassword123"
Example registry:
graphs:
# ttl
- source: https://someremote.ttl
graph_id: https://somenamedgraph.id
# multiple ttl to a single named graph
- source: [
somelocal.ttl,
https://someotherremote.ttl
]
graph_id: https://someothernamedgraph.id
# trig; no graph_id required
- source: https://someremote.trig
# trig + ttl
- source: [
https://someotherremote.trig,
someotherlocal.ttl,
yetanotherremote.ttl
]
graph_id: https://yetanothernamedgraph.id
For contextless RDF resources all graphs are merged into a named graph identified by graph_id
.
RDF Datasets/Quad formats obviously do not require a graph_id
field.
Multiple datasets are merged into a single dataset containing all named graphs of all datasets.
If the source field references both contextless and contextualized RDF sources, contextless sources are merged into a single named graph and added to the dataset.
The tool accepts both local and remote RDF data sources.
CLI
Run the rdfingest
command.
rdfingest --config ./config.yaml --registry ./registry.yaml
Default values for config and registry are ./config.yaml
and registry.yaml
.
Also see rdfingest --help
.
RDFIngest class
Point an RDFIngest
instance to a config file and a registry and invoke run_ingest
.
rdfingest = RDFIngest(
config="./config.yaml"
registry="./registry.yaml",
)
rdfingest.run_ingest()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for rdfingest-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | de790d2664d7b793fbba0cff9ceddf2ce249e0844e7b5d4483e0d755ae602905 |
|
MD5 | 92a2031c73df0f6d0e44f7497de9a279 |
|
BLAKE2b-256 | 19be74fba8c3382197bb8e5245598076c1869e89f0a83277b80b0dd328bd4f48 |