DL2SPARQL: Description Logic Concept to SPARQL Query
Installation
conda create -n dl2sparql python=3.9 --no-default-packages && conda activate dl2sparql
pip3 install pytest
pip3 install pandas
pip3 install parsimonious
pip3 install rdflib
# To test it
pytest tests
from dl2sparql import DescriptionLogicConcept, SPARQLQuery
ce_str = "∃hasChild.Male"
concept = DescriptionLogicConcept(dl_str="∃hasChild.Male", namespace="http://www.benchmark.org/family#")
query = SPARQLQuery(dl_concept=concept)
"""
SELECT
DISTINCT ?x WHERE {
?x a <http://www.w3.org/2002/07/owl#NamedIndividual> .
?x <http://www.benchmark.org/family#hasChild> ?s_1 .
?s_1 a <http://www.benchmark.org/family#Male> .
}
"""
For any questions or wishes, please contact: caglar.demir@upb.de or caglardemir8@gmail.com
Metadata
Release files for dl2sparql 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| dl2sparql-0.0.1.tar.gz | 54.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dl2sparql-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 116.9 kB
Release files / dl2sparql-0.0.1.tar.gz
| Download URL | dl2sparql-0.0.1.tar.gz |
|---|---|
| Size | 54.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ae39672750df0c6cc86cb2d5bc38e7f97f6aa9d4d58026b1ac52158e9f6c0118
|
|
BLAKE2b-256 checksum How to use checksums |
53c319993ea6ab77fe1125170caff5d921437b95ce9fc8d5c7c5fac65863e597
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.12
|
Release files / dl2sparql-0.0.1-py3-none-any.whl
| Download URL | dl2sparql-0.0.1-py3-none-any.whl |
|---|---|
| Size | 62.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
28c6529ef900969680960cad3fc0a721e17beaae92b6744a88b8558a311deff8
|
|
BLAKE2b-256 checksum How to use checksums |
b8fe7b2f6a3f978040da69e08f451fa5ce10c244fd0915312108aa289d7da7fa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.12
|