Holger,

I should have put this in my last email ... I'm trying to use your
example for direction and do the following ...

I would like to have an xml file where the values of the xml elements
are property(predicate) names.
For example ...

<predicateValues>
    <predicateValue>property1</predicateValue>
    <predicateValue>property2</predicate>
</predicateValues>

I want to iterate over the above xml file and within my "loop" have an
"Enter literal" module.
For every predicateValue element, the user would be prompted to enter
a value via the dialog.

I would then bind my variable (sml:xpath predicateValue/property() .
sm:outputVariable predicateValue)and the construct would look
something like this ...

CONSTRUCT {
    ?uri ?predicateValue ?enteredLiteralValue .
   }
WHERE {}

Could this be a possibility?

Barb

On Aug 24, 3:36 pm, Barb <[email protected]> wrote:
> Holger,
>
> I downloaded your sample, ran it and unfortunately got the same
> error  ....
>
> "Error: java.lang.IllegalArgumentException: Expected XML value for
> variable xml" and the "Bind Name" module is highlighted.
>
> I must have something configured incorrectly ... any ideas ??
>
> Barb
>
> On Aug 24, 12:04 pm, Holger Knublauch <[email protected]> wrote:
>
>
>
> > Barb,
>
> > could you send the file that you are working on, so that we can see  
> > the details?
>
> > The input to sml:BindByXPath should be left empty, and a predecessor  
> > module should load the ?xml variable, e.g. using sml:ImportXMLFromURL.
>
> > I have attached a working version (just checked) for your convenience.
>
> > Holger
>
> > On Aug 24, 2009, at 7:58 AM, Barb wrote:
>
> > > I'm working with the GeoNamesPostalCodes.n3 example and am getting the
> > > following error on the sml:BindByXPath module for the "long"
> > > variable ...
>
> > > 10:38:58.773:   - Merge
> > > 10:38:58.773:   - Bind long
> > > Error: java.lang.IllegalArgumentException: Expected XML value for
> > > variable xml
>
> > > I've set the sml:xpath (lng/text()) and am assuming I need a value for
> > > sml:xml.
> > > I've tried multiples based on the description (XML document or node to
> > > operate on) but nothing seems to work.
> > > What is it expecting?
>
> > > Barb
>
> >  GeoNamesPostalCodes.n3
> > 6KViewDownload- Hide quoted text -
>
> > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TopBraid Composer Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/topbraid-composer-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to