問題タブ [jena-rules]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票する
0 に答える
14 参照

rdf - How to write Apache Jena Inference rule for given rdf data?

I am trying to build a Apache Jena reasoner node over the below rdf data instance. I want to write a rule such that the inference api can tell if certain sensor values were out of range. e.g. print statement whose sensor measurement (value of hasValue) was not in range 100 to 400.

How do I write a rule using Apache Jena inference api. I tried reading the docs here: https://jena.apache.org/documentation/inference/index.html but I am getting more confused with the amount of details given.

Should I use RDFS reasoner or OWL reasoner? How do I develop the code exactly for my use case?

I have another rdf schema defining what sensor is located in what region (having lat and long values in graph). How can I write a rule which answers: Was sensor value out of range in region abc (having lat = 11 and long = 22).