-
Notifications
You must be signed in to change notification settings - Fork 32
Initial content for 'Inference Rules' #452
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: gh-pages
Are you sure you want to change the base?
Conversation
Great start! I am assuming there will be some (RDF) vocabulary like sh:rule that links those rules to shapes, so that the target mechanisms come into the mix? |
That's the plan - it's in gist sketch. Targets
Similarly So for regularity, maybe all targets should be "base graph only" generators of |
Following from https://gist.github.com/afs/2547eac679b1411acc078959ac2b3d31#attaching-rules-to-shapes
Not from the datagraph - the idea would just be to define what must be substituted prior to the rules being valid & executable. An implementation would then provide some mechanism to supply the arguments. In the example below I've made up sh:argument to define what needs to be substituted, and sh:argval for where it's substituted in the rule. So ex:city would need to be supplied prior to running the rule.
I believe if the params must be substituted once at the start this would be safe (?)
|
9b98eda
to
f272781
Compare
What are the plans with the existing SPARQL-based rules from SHACL-AF? We do have some users and I guess some people will find it easier to incrementally use their SPARQL strings instead of the new syntax. Related: are there any scenarios where SPARQL-based rules can express more than the new, native SHACL rules? |
Isn't that a question of what your engine chooses to support? I hope there isn't a conflict anywhere. Some AF-rules can lead to problems (e.g. a CONTRUCT can increment a number ... which, if repeated applied, is an infinite loop). I believe the best approach is to define the inf-rules then look at the where AF features fit in. Triple rules look like that can be mapped although we are now in the situation where there are multiple ways of doing that only one of which is inf-rules.
SPARQL-based rules can go bad and using order to control means its a question about current usage. I don't think that can be answered except by seeing some actual rules. Could we have issues labelled them as "UCR" and "Inference"? |
@recalcitrantsupplant - We seem to have multiple ways to achieve same/similar tasks. How do you see this fitting with |
I think I can live with just supporting them (SPARQL rules) in our platform even if the standard excludes them. I just wanted to get your opinion. No ticket needed on that. A good sample use cases for your work would be to support OWL RL... |
The rules are given: |
Yes, and I still have a SPIN version of that somewhere in the product code... Yet it would be awesome to have this as a community project. |
f272781
to
78ac373
Compare
78ac373
to
a581f2e
Compare
First pass at content for SHACL rules.
While this is a draft pull request, the important concerns are structure and design.