Description Logic Concept to SPARQL query
Project description
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
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
dl2sparql-0.0.1.tar.gz
(54.5 kB
view details)
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
dl2sparql-0.0.1-py3-none-any.whl
(62.4 kB
view details)
File details
Details for the file dl2sparql-0.0.1.tar.gz.
File metadata
- Download URL: dl2sparql-0.0.1.tar.gz
- Upload date:
- Size: 54.5 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ae39672750df0c6cc86cb2d5bc38e7f97f6aa9d4d58026b1ac52158e9f6c0118
|
|
| MD5 |
853dc573f5a036b3ab8f112f3ca8fcc1
|
|
| BLAKE2b-256 |
53c319993ea6ab77fe1125170caff5d921437b95ce9fc8d5c7c5fac65863e597
|
File details
Details for the file dl2sparql-0.0.1-py3-none-any.whl.
File metadata
- Download URL: dl2sparql-0.0.1-py3-none-any.whl
- Upload date:
- Size: 62.4 kB
- Tags: Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
28c6529ef900969680960cad3fc0a721e17beaae92b6744a88b8558a311deff8
|
|
| MD5 |
803c642fd7d42d0af891a89e1a8c234c
|
|
| BLAKE2b-256 |
b8fe7b2f6a3f978040da69e08f451fa5ce10c244fd0915312108aa289d7da7fa
|