You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stanbol.apache.org by al...@apache.org on 2011/10/10 19:05:50 UTC
svn commit: r1181077 -
/incubator/stanbol/site/trunk/content/stanbol/docs/trunk/rules/language.mdtext
Author: alexdma
Date: Mon Oct 10 17:05:49 2011
New Revision: 1181077
URL: http://svn.apache.org/viewvc?rev=1181077&view=rev
Log:
Refined rule language rendering
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=1181077&r1=1181076&r2=1181077&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:05:49 2011
@@ -2,9 +2,9 @@ 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, called <code>uncleRule</code>, for inferring the relation <code>hasUncle</code> between individuals <code>x</code> and <code>y</code> if <code>z</code> is a parent of <code>x</code> and <code>z</code> is brother of <code>y</code>.
-In Stanbol Rule syntax it is:
+In __Stanbol Rule__ syntax it is:
uncleRule[has(<http://www.foo.org/myont.owl#hasParent>, ?x, ?z) .
has(<http://www.foo.org/myont.owl#hasSibling>, ?z, ?y)
@@ -12,7 +12,7 @@ In Stanbol Rule syntax it is:
has(<http://www.foo.org/myont.owl#hasUncle>, ?x, ?y)
]
-The rule above becomes the following SWRL rule:
+The rule above becomes the following __SWRL__ rule:
<swrl:Variable rdf:ID="x"/>
<swrl:Variable rdf:ID="z"/>
@@ -39,7 +39,7 @@ The rule above becomes the following SWR
</ruleml:head>
</ruleml:Imp>
-or the following SPARQL query:
+or the following __SPARQL CONSTRUCT__ statement:
PREFIX myont: <http://www.foo.org/myont.owl#>