Questions tagged [sqwrl]

For questions related to SQWRL, a SWRL-based query language for extracting information from OWL ontologies.

SQWRL is a SWRL-based query language for extracting information from OWL ontologies.

15 questions
1
vote
1 answer

"Ignoring transitivity and/or complex subproperty axioms"

I'm trying to obtain to model a property that is transitive, asymmetric and irreflexive. I understand that OWL reasoning does not support for this complex relationship. However, is there a way to "trick" the reasoner? I want to use this for…
1
vote
0 answers

Infer object property using sqwrl set operations in protege

I'm new to protege and ontologies. I wrote this rule in SQWRL tab in protege, to figure out if p is managed by r: metadata(?md1) ^ hasValue(?md1, ?val) ^ hasLabel(?md1, ?lbl) ^ replicaset(?r) ^ hasMatchlabels(?r, ?md1) . sqwrl:makeSet(?sr, ?md1)…
RabbitG
  • 103
  • 1
  • 8
1
vote
0 answers

swrl rule not returning inferred properties

I need help figuring out why my SWRL rules in Protege are not inferring any property. For instance, I have a rule to calculate the door area for a wall as: Door(?d) ^ hasHeight(?d, ?h) ^ hasWidth(?d, ?w) ^ swrlb:multiply(?da, ?h, ?w) ->…
1
vote
0 answers

Checking property equivalence in OWL ontology through SWRL or SQWRL

I have properties P1, P2 and P3. P1 is equivalent to intersection of P2 and P3. How do I write a rule that takes P1 and finds intersection of P2 and P3 as equivalent property. I know SWRL works only on A-Box Individuals. Any hack here? Or am I…
badari
  • 91
  • 1
  • 8
1
vote
0 answers

Is there any chances to put in a class the results obtained from an SQWRL query?

I need to add, in an empty class, individuals obtained from an sqwrl query. This is possible with an swrl rule but I can't do that with sqwrl. Is there any chances to put in a class the results obtained from an SQWRL query? For example in this image…
Giuseppe Puglisi
  • 423
  • 2
  • 6
  • 17
1
vote
1 answer

SQWRL Query to Select Difference of Grouped Sets

Let's say that I have this information Individual | Sex | HairColor --------------------------------------- Joseph | Male | Black Peter | Male | Black Kevin | Male | Blonde Andrew | Male | …
1
vote
0 answers

SQWRL - Add a new rule

I am new in SQWRL and I have to add a new rule. I know how to execute a query. My query to add a new rule is : "pizza:Pizza(?p) ^ pizza:hasDiameter(?p, ?d) ^ swrlb:greaterThan(?d, 30) -> pizza:BigPizza(?p)" But I have an error: Invalid SWRL atom…
juju
  • 23
  • 4
1
vote
0 answers

Run sequences of multiple SWRL rules in protege

I have several SWRL rules that use the result of each other. Currently, I can run the rules one by one through the SWRL/SQWRL tabs. Is there a way to run these rules in succession in such a way that I do not have to run them one by one?
alex
  • 7,551
  • 13
  • 48
  • 80
1
vote
2 answers

How to write OR operation in sqwrl query

For AND operation in sqwrl query, it is like : Symptom(fever) ^ Symptom(vomiting) ^ Disease(?y) ^ hasSymptom(?y,fever) ^ hasSymptom(?y,vomiting) -> sqwrl:select(?y) From the above rule, it is selecting the diseases that have both symptoms. What…
Muzogeek
  • 53
  • 7
0
votes
0 answers

several questions on OWL + SWRL : 1/checking if individual has data property 2/getting the "leaves" of a tree 3/summing all tree branches

I have several questions on OWL + SWRL. Please note that I am a newbie either on all the science behind logics and ontologies. And newbie on protégé as well. I am currently using Protégé 5.6.1. I have an ontology where I model assemblies composed of…
B.Bocquet
  • 21
  • 5
0
votes
0 answers

Using result of SPARQL query in SQWRL

I want to write a rule in SQWRL that uses some information about individuals in couple of time (say 90 days). for example consider following rule: If x be a Pie and y be a Pistachio and ""the average number of y in all x from past 90 days be z"" ->…
FIFO
  • 41
  • 6
0
votes
0 answers

Convert rdf:PlainLiteral to xsd:string in owl-api

I am fairly new to this whole topic and i hope somebody may help me. I currently have a problem while comparing data of an ontology, when using SQWRL. The built-in swrlb:stringEqualIgnoreCase - Function in SQWRL won't let me compare rdf:PlainLiteral…
Kelschi
  • 1
  • 2
0
votes
1 answer

How to use SQWRL to query a class that is related to an individual of another class?

I'm new to SQWRL, so I'm doing some tests in a ontology I created in a course. In that ontology, there's a class named BallpointPen, that has some kinds of ballpoint pens as subclasses; also, there's a class named PenCharacteristic, which has the…
Daniel
  • 27
  • 5
0
votes
0 answers

SWRL divide by decimal

It seems SWRL divide function does not accept decimal . this is my query: universityproject:professor(?x) ^ universityproject:has_height(?x, ?h) ^ universityproject:has_weight(?x, ?w) ^ swrlb:pow(?phm, ?h, 2) ^ swrlb:divide(?res, ?w, ?phm) ^…
alex
  • 7,551
  • 13
  • 48
  • 80
0
votes
1 answer

Jess considers only the last mapped instance

I have a question in Jess Tab in Protege,I am building an ontology of 1 class Message and 3 instances :message 1 message2 message 3 , each each 3 datatype properties : category , interests , class .For each message I want to classify it as ham if…