Oh, you did say that your script only had one module.  You need to
import the triples that you intend to work on.  A SPARQLMotion script
starts with no triples (and is separate from the triples that define
the script model).  All triples available for a given module is
determined by the processing pipeline.  If no triples are imported,
then there are no triples to operate on.

Using ImportRDFFromWorkspace, ImportCurrentRDF, etc., is therefore a
necessary part of any script.

-- Scott

On Oct 28, 11:02 am, Darin <[email protected]> wrote:
> Sorry, I don't need any assertions at this point just need the
> returned the statement, shown above, to be available to the next
> module. I tried both true and false for replace and still nothing
> shows up in the SPARQLMotion Results tab when debugging the module. Is
> there some other reason that a SPARQL construct query would work on
> its own but not within the ApplyConstruct module?
>
> On Oct 28, 7:06 am, Scott Henninger <[email protected]>
> wrote:
>
> > Darin;  One way to confirm your query is to set replace=true in the
> > ApplyConstruct module.  Then only the constructed triples will appear
> > in the SPARQLMotion Results View.
>
> > Note that ApplyConstruct does not assert the triples.  It returns the
> > graph of triples created in the CONSTRUCT statement.  If you set
> > replace=false (the default) the output triples of the ApplyConstruct
> > module is the union of input triples and CONSTRUCTed triples.  You can
> > then save these triples to an RDF file.
>
> > To directly assert the triples, you can use an INSERT statement in a
> > PerformUpdate module.
>
> > -- Scott
>
> > On Oct 27, 11:28 pm, Darin <[email protected]> wrote:
>
> > > I am trying to use SPARQLMotion to get the dbpedia URI for companies
> > > that I have loaded via semanticXML. My script currently only consists
> > > of one Module which is an ApplyConstruct module. When running Debug,
> > > on this module, it doesn’t seem to return any assertions in the
> > > SPARQLMotion Results View (I do check ‘Display result triples). The
> > > CONSTRUCT query I use in this module works fine when run directly as a
> > > standalone SPARQL query:
>
> > > CONSTRUCT {
> > >     ?s owl:sameAs ?o3 .}
>
> > > WHERE {
> > >     ?s a CQ:displayName .
> > >     ?s composite:child ?o .
> > >     ?o sxml:text ?o2 .
> > >     LET (?o3 := smf:dbpedia(?o2)) .
>
> > > }
>
> > > This returns that following assertion. Note that only one of the 10 or
> > > so companies I have loaded actually has a dbpedia result, which is as
> > > expected:
>
> > > <displayName workstateID=”ReadyNotQAed”>  owl:sameAs  <http://
> > > dbpedia.org/resource/Genuine_Parts_Company>
>
> > > I would like this applyConstruct module to assert this match so I can
> > > utilize it to get more data on this company from dbpedia.
--~--~---------~--~----~------------~-------~--~----~
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