Author: alexdma
Date: Mon Oct 10 17:00:56 2011
New Revision: 1181071
URL: http://svn.apache.org/viewvc?rev=1181071&view=rev
Log:
Trying to fix non-rendered SWRL rule box
Modified:
incubator/stanbol/site/trunk/content/stanbol/docs/trunk/rules/language.mdtext
Modified:
incubator/stanbol/site/trunk/content/stanbol/docs/trunk/rules/language.mdtext
URL:
http://svn.apache.org/viewvc/incubator/stanbol/site/trunk/content/stanbol/docs/trunk/rules/language.mdtext?rev=1181071&r1=1181070&r2=1181071&view=diff
==============================================================================
---
incubator/stanbol/site/trunk/content/stanbol/docs/trunk/rules/language.mdtext
(original)
+++
incubator/stanbol/site/trunk/content/stanbol/docs/trunk/rules/language.mdtext
Mon Oct 10 17:00:56 2011
@@ -2,7 +2,7 @@ Title: Stanbol Rule Language
## Example
-The following is a rule for inferring the relation _hasUncle_ between
individuals _x_ and _y_ if _z_ is a parent of _x_ and _z_ is brother of _y_.
+The following is a rule for inferring the relation _hasUncle_ between
individuals _x and _y if _z is a parent of _x and _z is brother of _y.
In Stanbol Rule syntax it is:
@@ -14,31 +14,30 @@ In Stanbol Rule syntax it is:
The rule above becomes the following SWRL rule:
- <swrl:Variable rdf:ID="x"/>
- <swrl:Variable rdf:ID="z"/>
- <swrl:Variable rdf:ID="y"/>
- <ruleml:Imp>
- <ruleml:body rdf:parseType="Collection">
- <swrl:IndividualPropertyAtom>
- <swrl:propertyPredicate rdf:resource="⪚hasParent"/>
- <swrl:argument1 rdf:resource="#x" />
- <swrl:argument2 rdf:resource="#z" />
- </swrl:IndividualPropertyAtom>
- <swrl:IndividualPropertyAtom>
- <swrl:propertyPredicate rdf:resource="⪚hasSibling"/>
- <swrl:argument1 rdf:resource="#z" />
- <swrl:argument2 rdf:resource="#y" />
- </swrl:IndividualPropertyAtom>
- </ruleml:body>
- <ruleml:head rdf:parseType="Collection">
- <swrl:IndividualPropertyAtom>
- <swrl:propertyPredicate rdf:resource="⪚hasUncle"/>
- <swrl:argument1 rdf:resource="#x" />
- <swrl:argument2 rdf:resource="#y" />
- </swrl:IndividualPropertyAtom>
- </ruleml:head>
- </ruleml:Imp>
-
+ <swrl:Variable rdf:ID="x"/>
+ <swrl:Variable rdf:ID="z"/>
+ <swrl:Variable rdf:ID="y"/>
+ <ruleml:Imp>
+ <ruleml:body rdf:parseType="Collection">
+ <swrl:IndividualPropertyAtom>
+ <swrl:propertyPredicate rdf:resource="⪚hasParent"/>
+ <swrl:argument1 rdf:resource="#x" />
+ <swrl:argument2 rdf:resource="#z" />
+ </swrl:IndividualPropertyAtom>
+ <swrl:IndividualPropertyAtom>
+ <swrl:propertyPredicate rdf:resource="⪚hasSibling"/>
+ <swrl:argument1 rdf:resource="#z" />
+ <swrl:argument2 rdf:resource="#y" />
+ </swrl:IndividualPropertyAtom>
+ </ruleml:body>
+ <ruleml:head rdf:parseType="Collection">
+ <swrl:IndividualPropertyAtom>
+ <swrl:propertyPredicate rdf:resource="⪚hasUncle"/>
+ <swrl:argument1 rdf:resource="#x" />
+ <swrl:argument2 rdf:resource="#y" />
+ </swrl:IndividualPropertyAtom>
+ </ruleml:head>
+ </ruleml:Imp>
or the following SPARQL query: