ruby-rdf / rdf-reasoner Goto Github PK
View Code? Open in Web Editor NEWCreates triples for various entailment regimes of a vocabulary for enabling SPARQL 1.1 Entailment
License: The Unlicense
Creates triples for various entailment regimes of a vocabulary for enabling SPARQL 1.1 Entailment
License: The Unlicense
Is there a strategic reason why a subProperty
entailment (the inverse of subPropertyOf
, an analogue to subClass
) was left out of this package? At any rate, I just hacked one in. Shall I patch?
The reasoner should probably accept a list of vocabularies over which to reason, rather than just expanding imported vocabularies recursively.
I am not sure if this is a bug here or RDF::Vocabulary
, but:
I have a routine that finds all subclasses/equivalent classes for a given class (it just recursively calls subClass
and equivalentClass
on whatever you feed it) and discovered it had stopped working on my own vocabulary. Turns out:
[4] pry(main)> RDF::SAK::CI.Audience.subClassOf
=> [#<RDF::URI:0x16d0 URI:dc:AgentClass>, #<RDF::URI:0x16e4 URI:skos:Concept>]
That's obviously wrong, ie it's not resolving the prefixes, but I hadn't changed anything. So I tried:
[5] pry(main)> require 'rdf/vocab/foaf'
=> true
[6] pry(main)> RDF::Vocab::FOAF.Image.subClassOf
=> [#<RDF::URI:0x1cfc URI:foaf:Document>]
…and it turns out it doesn't resolve in these either.
Looking specifically at schema:itemListElement
, range includes ListItem
, Text
and Thing
. if the value is a typed resource, it fails at https://github.com/ruby-rdf/rdf-reasoner/blob/develop/lib/rdf/reasoner/schema.rb#L130-L140. Given that Thing
is in the range, it should not fail.
cc/ @JHTrans
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.