SPARQL Result to Spark
Project description
This is a simple module that allows developer to query SPARQL endpoints and analyze the results with Apache Spark. In particular, if a SELECT query is used, a DataFrame is returned, while if a CONSTRUCT query is used, a GraphFrame is returned. You can find the documentation here.
Build
To generate a .whl file just type make build, and the file will be generated under dist folder.
Test
To properly test the library a SPARQL endpoint is needed. Navigate to deplyoment folder and start a Jena-Fuseky component with the command docker-compose up -d. A simple, hand made, FOAF ontology with few individuals is loaded in Jena-Fuseki. You are encouraged to experiment with the SPARQL endpoint availabe at localhost.
After starting Jena-Fuseki, navigate back to the main folder, and type make docker-test to start the test phase.
Please, feel free to add more tests and open a pull request 😁
Project details
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 SPARQL2Spark-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | da4ea5c936abe09f1f350fbab28c318df495c86e50113d7644b742095285782d |
|
MD5 | 53f804b5bf5fe64af2ae2c18bcf4e40a |
|
BLAKE2b-256 | 9fcd6bd987a49229b3820f53cc0554a5e8151b4d93e72a22f23dec72d4432347 |