I'm trying to use cinclude to include the response from a jena-joseki
rdf server sparql endpoint.
This requires that I send a query string with stuff like:
PREFIX dc: <http://purl.org/dc/elements/1.1/>
in it.
I'm using the cinclude:includexml form and I can not figure out how to
get the < character into the url.
I have tried <cinclude:value><![CDATA[ .. ]]></cinclude:value>
and I have tried <
in both cases the extra encoding stuff get in and not the %3c which is
what I need.
What am I doing wrong?
What else can I use to get the sparql endpoint response into my pipeline?
pipeline
<map:match pattern="query">
<map:generate src="queryJoseki.xml"/>
<map:transform type="cinclude" label="debug"/>
<map:transform src="webdoc2imageCatalog.xslt"/>
<map:serialize type="html"/>
</map:match>
below is the file I'm running down the pipeline.
I have commented out the failing section
The first cinclude has the desired url encoded by an offline process.
<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:dct="http://purl.org/dc/terms/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:bdm="http://ashtar/metadata/ns/1.0/bdm#"
xmlns:hcm="http://ashtar/metadata/ns/1.0/hcm#"
xmlns:mdm="http://ashtar/metadata/ns/1.0/mdm#"
xmlns:cinclude="http://apache.org/cocoon/include/1.0"
>
<cinclude:include
src="http://emperor/joseki/books?query=PREFIX+dc%3A++%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Felements%2F1.1%2F%3E%0D%0APREFIX+owl%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2002%2F07%2Fowl%23%3E%0D%0APREFIX+rdf%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%3E%0D%0APREFIX+rdfs%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2000%2F01%2Frdf-schema%23%3E%0D%0A%0D%0ASELECT+%3Fsub+%3Ftitle+%3Ffile+%3Fversion+%3Fdescription%0D%0AWHERE%0D%0A++%7B+%3Fsub+rdf%3Atype+owl%3AOntology.%0D%0A++++OPTIONAL+%7B%3Fsub+dc%3Atitle+%3Ftitle%7D.%0D%0A++++OPTIONAL+%7B%3Fsub+rdfs%3AisDefinedBy+%3Ffile%7D.%0D%0A++++OPTIONAL+%7B%3Fsub+owl%3AversionInfo+%3Fversion%7D.%0D%0A++++OPTIONAL+%7B%3Ffile+dc%3Adescription+%3Fdescription%7D.%0D%0A++++%7D%0D%0A"/>
<!--
<cinclude:includexml ignoreErors="true">
<cinclude:src>http://emperor/joseki/books</cinclude:src>
<cinclude:configuration>
<cinclude:parameter>
<cinclude:name>method</cinclude:name>
<cinclude:value>GET</cinclude:value>
</cinclude:parameter>
</cinclude:configuration>
<cinclude:parameters>
<cinclude:parameter>
<cinclude:name>query</cinclude:name>
<cinclude:value><![CDATA[PREFIX dc:
<http://purl.org/dc/elements/1.1/>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?sub ?title ?file ?version ?description
WHERE
{ ?sub rdf:type owl:Ontology.
OPTIONAL {?sub dc:title ?title}.
OPTIONAL {?sub rdfs:isDefinedBy ?file}.
OPTIONAL {?sub owl:versionInfo ?version}.
OPTIONAL {?file dc:description ?description}.
}]]></cinclude:value>
</cinclude:parameter>
</cinclude:parameters>
</cinclude:includexml>
-->
Thanks for any help anyone can offer.
Al
begin:vcard
fn:Al Brown
n:Brown;Al
org:Light Technology Publishing;Information Systems
adr:;;4030 E. Huntington;Flagstaff;Az;86001;USA
email;internet:[EMAIL PROTECTED]
title:Director of Information Systems
tel;work:928-526-1345
x-mozilla-html:FALSE
url:http://www.lighttechnology.com
version:2.1
end:vcard
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]