[owl-s] syntax SPARQL-Expression - expressionData - valuefunction
Johan Kumps
johan.kumps at telenet.be
Sat Dec 18 18:19:50 EST 2010
Hello,
Somebody can help me?
Thanks,
Johan,
2010/12/16 Johan Kumps <johan.kumps at telenet.be>
> HI,
>
> This is my SPARQL query to get a part of an Input of a composite process to
> pass to a perform in a sequence :
>
> SELECT ?o WHERE {?s <
> http://www.mooncompany.org/PurchasingConcepts.owl#businessName> ?o.}
>
> This query is doing its job correctly when I pass this value to the
> queryString variable in the SparqlValueFunction.getValueFromPerformResults
> method. But when passing this a value of the <expr:expressionData> element
> in my OWL file I keep getting this exception :
>
> *08:25:08,220 INFO [main][Vocabulary] Loading ontology
> http://on.cs.unibas.ch/owl-s/1.2/FLAService.owl# ...*
>
> *08:25:08,345 ERROR [main][RDFDefaultErrorHandler]
> file:SellerService.owl(line 132 column 55): Element or attribute do not
> match QName production: QName::=(NCName':')?NCName. *
>
> *Exception in thread "main" *
> *java.io.IOException**: Failed to read ontology. Details:
> com.hp.hpl.jena.shared.JenaException**: org.xml.sax.SAXParseException**:
> Element or attribute do not match QName production:
> QName::=(NCName':')?NCName. *
>
> *at impl.jena.OWLReaderImpl.readInternal(*
> *OWLReaderImpl.java:205**)*
>
> I already tried to escape the slashes whitout success. Also doing something
> like this :
>
> SELECT ?o WHERE {?s ont:businessName> ?o.}
>
> where ont is defined as xmlns:ont=
> http://www.mooncompany.org/PurchasingConcepts.owl# as an attribute of the
> <RDF> tag is not helping me out.
>
> Can somebody shed a light on this? I'm sure this is a small issue about
> using the correct syntax.
>
> Kind regards,
>
> Johan,
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.mindswap.org/pipermail/owl-s/attachments/20101219/1a6a6b82/attachment.html
More information about the OWL-S
mailing list