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