Developer-friendly Queries over RDF triples
Project description
Bikidata
Developer-friendly Queries over RDF triples
Using this tool you can hit the ground running, and make some useful queries over RDF data using simple JSON calls.
Getting started TL;DR
You have a n-triple file called myfile.nt.
Install bikidata by saying pip install bikidata
Import it into bikidata with: python -m bikidata myfile.nt
And now, in a python prompt, you can query things, for example:
import bikidata
r = bikidata.query({
"filters": [
{"p":"fts",
"o":"something"
}
]
})
or
r = bikidata.query({
"filters": [
{ "p":"id",
"o":"<http://example.com/id/123>"
}
]
})
or
r = bikidata.query({
"filters": [
{"p":"fts",
"o":"something"
},
{ "op":"not",
"p":"<http://www.w3.org/1999/02/22-rdf-syntax-ns#type>",
"o":"<https://swapi.co/vocabulary/Species>"
}
]
})
For more examples, see the file: examples.ipynb
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bikidata-0.2.17.tar.gz.
File metadata
- Download URL: bikidata-0.2.17.tar.gz
- Upload date:
- Size: 9.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.11 Darwin/23.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3e4ea8aaa2086dece3e60deb3760dd1659caab20e59336e3971b789069916bc4
|
|
| MD5 |
2276a46613083b14a555e88598377bf3
|
|
| BLAKE2b-256 |
71eef5bc6b484a0d7b55ccc43d3f212598fd12828745acb69d4d475175d9d8c5
|
File details
Details for the file bikidata-0.2.17-py3-none-any.whl.
File metadata
- Download URL: bikidata-0.2.17-py3-none-any.whl
- Upload date:
- Size: 9.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.11 Darwin/23.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e032765aa715a3f8e8cc47b24e57bd5d50356b9e7f43e31f541ff64a69774de3
|
|
| MD5 |
6f5a3fd18b50a71aa737faa24ab6257e
|
|
| BLAKE2b-256 |
baab4504d0125513ec965040a7ac0e20a990db9c0544be4e24606ed48d759a21
|