Questions tagged [jena-rules]

Jena rules is Java-based framework for building Semantic Web applications. An environment for RDF, RDFS and OWL, SPARQL and includes a rule-based inference engine. Three kind of rules (according with their execution model): forward rules, backward rules and hybrid rules.

Jena Rules provides three mechanism of rule execution:

  1. Backward Chaining Rules - are identified by using <-. These rules are interpreted as queries and the rule head (the conclusion part) contains a single atom which cannot be a built-in. The body (the condition part) is a conjunction between one or more triple patterns and/or built-ins.

  2. Forward Chaining Rules - are identified by using ->. They are executed by a forward engine and both the head and body may contain of conjunction of atoms.

  3. Hybrid Rules - consists in using one or more backward chaining rules in the head of a forward chaining rule.

Official documentation.

80 questions
0
votes
2 answers

Creating Jena Rules from SWRL rules

please how creating Jena Rules. There is my SWRL Rules 1-System(?x) ∧ hasNbAbsence(?x, ?y) ∧ swrlb:greaterThan(?y, 10) → BadBehaviorOperators(?x) 2-System(?x) ∧ hasNbAbsence(?x, ?y) ∧ swrlb:lessThanOrEqual(?y, 10) → …
SarraWiss
  • 19
  • 3
0
votes
1 answer

Best way to query Individuals from an Inferred Jena Ontology

I created an ontology based Security alerts. After reading in some data(Individuals) it got pretty big, so I decided to use a Jena Rule Reasoner to determine some facts. I mostly give Individuals types and attributes and use some regex. Heres a…
ImmaCute
  • 57
  • 7
0
votes
1 answer

Adding a timer to Jena rules?

I have designed a set of Jena rules, where some of these rules keep working for a very long time without returning results. I tried to reduce my OWL file to check whether the rules are entering an infinite loop or not. Fortunately, it does not…
0
votes
1 answer

Jena rule not firing when expected

I've started to use Jena and tested its rules-based reasoners, but I'm not seeing the results that I expect. I listed all of individual statement and these are from my OWL…
neenutna
  • 35
  • 2
  • 9
0
votes
1 answer

Jena Rules: How to perform literal value type conversion from float to double (and vice versa)?

I have the following Jena Rule to perform addition: @prefix pm: . @prefix rdf: . @prefix owl: . @prefix pr: …
C.Neal
  • 319
  • 3
  • 12
1 2 3 4 5
6