You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Halgurt Mustafa-Ali <mu...@informatik.tu-muenchen.de> on 2004/08/09 13:53:29 UTC

SemWeb

Hi all,

Well I implemented the RDQLTransformer and works properly. It would be very nice 
if you be so kind a test it. I used Jena 2.1, and cocoon 2.2.

It is possible to pass the knowledge base as src attribute to the Transformer, 
If you have a komplex model you kann give all needed files as sitemap 
Parameters, it does not matter how you name the parameters.

It is also possible to set these values as request parameters:

Triple statement: subject, object
and statement:  operand1, operand2

For example if you have this query:

	<rdql:query>

		<rdql:select>

			<rdql:param>?name</rdql:param>
			<rdql:param>?semester</rdql:param>

		</rdql:select>

		<rdql:where>

			<rdql:triple subject="?x" 
predicate="http://a.com/ontology#hatStudent" object="?y"/>

			<rdql:triple subject="?y" 
predicate="http://a.com/ontology#name" object="?name"/>

			<!--rdql:triple subject="?y" 
predicate="http://a.com/ontology#hatMatrikelNummer" object="?matrikelNr"/-->

            <rdql:triple subject="?y" predicate="http://a.com/ontology#semester" 
object="?semester"/>

		</rdql:where>
		<rdql:and operand1="?semester" operand2="?z2" operator=">"/>
	</rdql:query>


you can set these values: ?x, ?y, ?z2, ?semester, ?name and ?matrikelNr like 
that:

http://yourURL??z2=8&?name=anyName

It will be very nice if you feedback and tell me your