OK - so I want to try using SPINMap to transform what default import looks
like into the target ontology...
so I'm trying to save the imported graph programmatically, because I'm
still not sure if manual import gives the exact same graph as import using
the sml:ImportXML - and AFAICT SPINMap needs a project file to load for it
its UI based mapping processes
- so, load and save example, set up SPINMap, invoke transformation using
SWP for multiple files in the same XML schema...
tried various things to dump the graph : (NB invoking
with &_contextdebug=true)
If none of these work, noting the graph loads (JSON print out example
provided by Holger works), then what will work and what is wrong with these
options?
<ui:setContext ui:queryGraph=\"{=
ui:graphWithImports(<http://surroundaustralia.com/app/crips/domain/>)
}\">
<sml:ImportXMLFile sml:ignoreDoctype="true" sm:outputVariable=\"xml\"
sml:sourceFilePath=\"/TQ_models/test0.1/AgentModelsXML/{= ?fileName }\">
<sml:ConvertXMLToRDF
sml:baseURI=\"http://surroundaustralia.com/app/crips/tmp/am_sxml/\"
sml:replace=\"{= true }\" sml:xml=\"{= ?xml }\">
<ui:dumpGraph
ui:graph=\"http://surroundaustralia.com/app/crips/tmp/am_sxml/\"
ui:filePath="/tmp/agentmodels_as_sxml.ttl"
/>
</sml:ConvertXMLToRDF>
</sml:ImportXMLFile>
runs with no error - but seems to dump nothing
<ui:setContext ui:queryGraph=\"{=
ui:graphWithImports(<http://surroundaustralia.com/app/crips/domain/>)
}\">
<sml:ImportXMLFile sml:ignoreDoctype="true" sm:outputVariable=\"xml\"
sml:sourceFilePath=\"/TQ_models/test0.1/AgentModelsXML/{= ?fileName }\">
<sml:ConvertXMLToRDF
sml:baseURI=\"http://surroundaustralia.com/app/crips/tmp/am_sxml/\"
sml:replace=\"{= true }\" sml:xml=\"{= ?xml }\">
</sml:ConvertXMLToRDF>
</sml:ImportXMLFile>
<ui:dumpGraph
ui:graph=\"http://surroundaustralia.com/app/crips/tmp/am_sxml/\"
ui:filePath="/tmp/agentmodels_as_sxml.ttl"
/>
runs with no error - but seems to dump nothing
<ui:setContext ui:queryGraph=\"{=
ui:graphWithImports(<http://surroundaustralia.com/app/crips/domain/>)
}\">
<sml:ImportXMLFile sml:ignoreDoctype="true" sm:outputVariable=\"xml\"
sml:sourceFilePath=\"/TQ_models/test0.1/AgentModelsXML/{= ?fileName }\">
<sml:ConvertXMLToRDF
sml:baseURI=\"http://surroundaustralia.com/app/crips/tmp/am_sxml/\"
sml:replace=\"{= true }\" sml:xml=\"{= ?xml }\">
<ui:dumpGraph ui:graph="{= ui:tempGraph }"
ui:filePath="/tmp/agentmodels_as_sxml.ttl" />
</sml:ConvertXMLToRDF>
</sml:ImportXMLFile>
Gives a null pointer
<ui:setContext ui:queryGraph=\"{=
ui:graphWithImports(<http://surroundaustralia.com/app/crips/domain/>)
}\">
<sml:ImportXMLFile sml:ignoreDoctype="true" sm:outputVariable=\"xml\"
sml:sourceFilePath=\"/TQ_models/test0.1/AgentModelsXML/{= ?fileName }\">
<sml:ConvertXMLToRDF
sml:baseURI=\"http://surroundaustralia.com/app/crips/tmp/am_sxml/\"
sml:replace=\"{= true }\" sml:xml=\"{= ?xml }\">
<ui:update ui:updateQuery="{! INSERT { GRAPH ui:tempGraph { ?s ?p
?o } } WHERE { ?s ?p ?o } }" />
<ui:dumpGraph ui:graph="{= ui:tempGraph }"
ui:filePath="/tmp/agentmodels_as_sxml.ttl" />
</sml:ConvertXMLToRDF>
</sml:ImportXMLFile>
Gives a null pointer
<ui:setContext ui:queryGraph=\"{=
ui:graphWithImports(<http://surroundaustralia.com/app/crips/domain/>)
}\">
<sml:ImportXMLFile sml:ignoreDoctype="true" sm:outputVariable=\"xml\"
sml:sourceFilePath=\"/TQ_models/test0.1/AgentModelsXML/{= ?fileName }\">
<sml:ConvertXMLToRDF
sml:baseURI=\"http://surroundaustralia.com/app/crips/tmp/am_sxml/\"
sml:replace=\"{= true }\" sml:xml=\"{= ?xml }\">
</sml:ConvertXMLToRDF>
</sml:ImportXMLFile>
<ui:dumpGraph ui:graph="{= ui:tempGraph }"
ui:filePath="/tmp/agentmodels_as_sxml.ttl" />
Gives a null pointer
--
You received this message because you are subscribed to the Google Groups
"TopBraid Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.