Skip to main content

Extra tools for rdflib

Project description

Extra command line tools for rdflib

This package provides some additional command line tools for rdflib:

  • SPARQL Query execution with optional reasoning using OWL-RL:
    rdflib-xtl sparql --help
    
  • OWL Reasoning using OWL-RL
    rdflib-xtl reason --help
    

Usage examples:

# Install pipx
pip3 install --user --upgrade pipx

# (optionally) clear pipx cache if you want the latest version ...
\rm -vr ~/.local/pipx/.cache/

# check version
pipx run --spec yocho.rdflib-xtl rdflib-xtl --version

# Run SPARQL without reasoning ...
pipx run --spec yocho.rdflib-xtl \
  rdflib-xtl sparql \
  -q 'SELECT * WHERE { ?s rdfs:subClassOf owl:Thing. }' \
  http://xmlns.com/foaf/spec/index.rdf

# Dump input graph with SPARQL query ...
pipx run --spec yocho.rdflib-xtl \
  rdflib-xtl sparql \
  -q 'CONSTRUCT { ?s ?p ?o } WHERE { ?s ?p ?o }' \
  http://xmlns.com/foaf/spec/index.rdf

# Run SPARQL with reasoning ...
pipx run --spec yocho.rdflib-xtl \
  rdflib-xtl sparql --reason \
  -q 'SELECT * WHERE { ?s rdfs:subClassOf owl:Thing. }' \
  http://xmlns.com/foaf/spec/index.rdf

# Dump reasoned graph with SPARQL query ...
pipx run --spec yocho.rdflib-xtl \
  rdflib-xtl sparql --reason \
  -q 'CONSTRUCT { ?s ?p ?o } WHERE { ?s ?p ?o }' \
  http://xmlns.com/foaf/spec/index.rdf

# Run reasoning ...
pipx run --spec yocho.rdflib-xtl \
  rdflib-xtl reason http://xmlns.com/foaf/spec/index.rdf

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

aucampia.rdflib-xtl-0.5.0.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

aucampia.rdflib_xtl-0.5.0-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file aucampia.rdflib-xtl-0.5.0.tar.gz.

File metadata

  • Download URL: aucampia.rdflib-xtl-0.5.0.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.6 CPython/3.9.6 Linux/5.13.13-200.fc34.x86_64

File hashes

Hashes for aucampia.rdflib-xtl-0.5.0.tar.gz
Algorithm Hash digest
SHA256 81cee9ac84919e0af7c1449fef7050e9d92529427017c956263427ad0be4381f
MD5 e2b77b4b0d99e553880388ec6a99d4a5
BLAKE2b-256 d9881488451922c984f99de288df2736b0e512daafabbabff813f726953f1714

See more details on using hashes here.

File details

Details for the file aucampia.rdflib_xtl-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: aucampia.rdflib_xtl-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.6 CPython/3.9.6 Linux/5.13.13-200.fc34.x86_64

File hashes

Hashes for aucampia.rdflib_xtl-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cc3f2e9bdba7b588a114915eaa6c08d0660e6f9cd32a45bde3c48ae42b08d361
MD5 1c6dee8d4a15f56597ca2337dffea934
BLAKE2b-256 720c59986ec888a436ecec1ba43d1f0a2c31e8472117fbcd506c2ee3538c3a8c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page