{"repo":"ISE-FIZKarlsruhe/bikidata","free":true,"listed":false,"github":"https://github.com/ISE-FIZKarlsruhe/bikidata","clone":"git clone https://github.com/ISE-FIZKarlsruhe/bikidata.git","description":"Developer-friendly queries over RDF triples","language":"Python","stars":10,"topics":["duckdb","information-retrieval","knowledge-base","knowledge-graph","rdf","search"],"license":"MIT","category":"productivity","readme_excerpt":"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: or or For more examples, see the file: examples.ipynb Redis support When querying non-trivial datasets of a few million triples, or handling many concurrent users, we do not want to open a new database connection for each query, and cache the results in memory. By using Redis we can scale the number of bikidata workers horizontally, and share the cache between them. The query async function can now be awaited in an async context. This function places the query in a Redis queue, and awaits the result. To use this, you need to have a Redis server running, and install the redis python package: And then you need to run the bikidata worker in a separate terminal: It is possible to run multiple workers, and they will share the load. Then, in your code, you can await the query async function in stead of the regular query function:","default_branch":null,"files":null,"tree":[],"storefront":"/r/ISE-FIZKarlsruhe","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ISE-FIZKarlsruhe/bikidata/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}