Code Monkey home page Code Monkey logo

Comments (5)

ashleysommer avatar ashleysommer commented on June 12, 2024

Thank you for reporting this.

It seems like RDFClosure has been renamed to OWL-RL

I know. I was the one who renamed it 😉.

I thought I changed all usages of RDFSClosure to owlrl for the pySHACL 0.9.7 release, but evidently I missed the ones in the custom_refs_closure.py file.
I will release a 0.9.8 with this fixed asap.

from pyshacl.

ashleysommer avatar ashleysommer commented on June 12, 2024

Fixed in d86a00c
Thanks @rmeissn

from pyshacl.

rmeissn avatar rmeissn commented on June 12, 2024

This is not resolved for me with v0.9.8.

### sudo pip uninstall pyshacl
### sudo pip install pyshacl
### sudo pip show pyshacl
Name: pyshacl
Version: 0.9.8
Summary: Python SHACL Validator
Home-page: https://github.com/RDFLib/pySHACL/
...
Location: /usr/lib/python2.7/site-packages
Requires: rdflib, rdflib-jsonld, owlrl
...
### pyshacl --help
pyshacl --help
Traceback (most recent call last):
  File "/usr/local/bin/pyshacl", line 17, in <module>
    from pyshacl import validate
  File "/usr/local/lib/python3.7/site-packages/pyshacl/__init__.py", line 3, in <module>
    from pyshacl.validate import validate
  File "/usr/local/lib/python3.7/site-packages/pyshacl/validate.py", line 12, in <module>
    from pyshacl.inference import CustomRDFSSemantics, CustomRDFSOWLRLSemantics
  File "/usr/local/lib/python3.7/site-packages/pyshacl/inference/__init__.py", line 2, in <module>
    from .custom_rdfs_closure import CustomRDFSSemantics, CustomRDFSOWLRLSemantics
  File "/usr/local/lib/python3.7/site-packages/pyshacl/inference/custom_rdfs_closure.py", line 2, in <module>
    from RDFClosure.RDFSClosure import RDFS_Semantics as OrigRDFSSemantics
ModuleNotFoundError: No module named 'RDFClosure'

from pyshacl.

ashleysommer avatar ashleysommer commented on June 12, 2024

@rmeissn
It looks like you've installed pyshcal 0.9.8 using pip for python 2.7, into /usr/lib/python2.7/site-packages, but when you run the pyshacl script it executes from /usr/local/lib/python3.7/site-packages/pyshacl/.

I think your installation in /usr/local/lib/python3.7/site-packages/pyshacl/ is still on v0.9.7.
Try:

sudo pip3 uninstall pyshacl
sudo pip3 install pyshacl

from pyshacl.

rmeissn avatar rmeissn commented on June 12, 2024

You're right. I've accidentally used pip instead of pip3. Thanks for pointing me to this!
v.0.9.8 works as expected.

from pyshacl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.