Comments (1)
It looks like it may be caused by using normal Python semantics to infer literals with same value. In my case ex:Blorb
is not understood by Rdflib so it assigns it the value None
. However, since both are None
they compare equal and they add the attributes.
Another example shows the same happen with integers and booleans:
@prefix ex: <urn:example#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
ex:alpha ex:hasValue "false"^^xsd:boolean .
ex:beta ex:hasValue "0"^^xsd:integer .
Here both ex:alpha
and ex:beta
ends up with ex:hasValue
for both xsd:boolean
and xsd:integer
even though (at least I think) they are different values in RDF(S) interpretations.
- I think the issue might be caused by the following lines. Line 124 applies Python semantics to the value equality check: I am not sure what a good fix for this is.
- The other part is that literals with unknown datatypes receive value
None
from theself._literals()
call: those literals with value ofNone
should probably be filtered away before the comparison.
Lines 120 to 125 in a77e179
from owl-rl.
Related Issues (20)
- Test fails: test_cls_maxqc1
- Create inferred triples in a NAMED graph HOT 1
- Owlrl -w pos-cleaning
- UserWarning: Code: <SomeCode> is not defined in namespace XSD with rdflib 6.0.0 HOT 3
- rdflib_jsonld breaks install, replace with RDFLib 6.0 integrated version
- `owlrl --help` in 6.x fails, trying to import old constants (e.g. RDFXML)
- OWL RL creates triples with a Literal as Subject when evaluating PROV-O ontology HOT 2
- (RDFS) Closure is flushed to the graph HOT 1
- owlrl relies on `OWL.Datatype` which does not exist in the OWL namespace in rdflib HOT 9
- The rdflib-jsonld package has been integrated into rdflib as of rdflib==6.0.1
- add type (mypy?) checking
- script return type may be incompatible HOT 1
- use shacl rules for entailment
- combinedclosure.rdfs always true HOT 1
- Version 6.x is available on PyPi and Anaconda, but the latest on GitHub is 5.2.3 HOT 1
- Unexpected behaviour of OWL-RL reasoner (Literals in the position of Subjects) HOT 2
- Inferencing does not work on rdflib.Dataset
- 6.0.2: sphinx warnings `reference target not found`
- 6.0.2: pytest warnings
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from owl-rl.