[owl-s] syntax SPARQL-Expression - expressionData -valuefunction
Johan Kumps
johan.kumps at telenet.be
Tue Dec 21 14:37:09 EST 2010
Hi,
I implemented your first proposition and it is correctly working in my
application.
Kind regards,
2010/12/21 Thorsten Möller <Thorsten.Moeller at unibas.ch>
> Hi Johan,
>
> not sure if you have solved this meanwhile by yourself - I was really
> not able to answer earlier.
>
> It's a syntactical problem. The following two versions should both work:
>
>
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE uridef[
> <!ENTITY ont "http://www.mooncompany.org/PurchasingConcepts.owl">
> ]>
> <!-- ... -->
> <expr:expressionData>
> SELECT ?o WHERE {?s <&ont;#businessName> ?o.}
> </expr:expressionData>
> <!-- ... -->
>
>
> **************************************
>
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE uridef[
> <!ENTITY ont "http://www.mooncompany.org/PurchasingConcepts.owl">
> ]>
> <!-- ... -->
> <expr:expressionData>
> PREFIX ont: <&ont;#>
> SELECT ?o WHERE {?s ont:businessName ?o.}
> </expr:expressionData>
> <!-- ... -->
>
>
>
> Cheers,
> Thorsten
>
>
>
>
>
>
>
> On Sunday, December 19, 2010 12:19 AM [GMT+1=CET],
> Johan Kumps <johan.kumps at telenet.be> wrote (with possible deletions):
>
> > 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,
> >>
> >
> >
> >
> >
> > _______________________________________________
> > OWL-S mailing list
> > OWL-S at lists.mindswap.org
> > http://lists.mindswap.org/mailman/listinfo/owl-s
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.mindswap.org/pipermail/owl-s/attachments/20101221/123ba4b8/attachment.html
More information about the OWL-S
mailing list