The EDG developer guide states 

"There is also a generic SPARQLMotion-based importer mechanism that applies 
to all vocabulary types. Such importers receive an uploaded file as input 
and produce triples that shall be added to the current vocabulary or 
working copy. In order to create such importers, store them in a file 
ending with .sms.*. Import the file teamworkscripts.ttl and use the 
properties defined therein to link your sm:Function either with a 
vocabulary type or specific vocabularies for which the function shall show 
up. The script needs to end with sml:ReturnRDF and take exactly one string 
argument - the body of the uploaded file."

there are no links and am not finding anything via google or help.

- so i'm trying to interpret just what " to the current vocabulary or 
working copy" means - and what it means for design of custom importers.

poking around in the code base I find reference to 
teamwork:scriptBasedFileImport 

and teamwork:ScriptBasedFileImportService

with an arg:script: sm:Function parameter

so presumably this means a sparqlmotion script that returns a RDF graph?

There are a few moving parts in an EDG importer - 
the plugin 
    which references a entry page 
          which calls a service
              which calls a function inside a transaction context

there seems to be a fair bit of contract implied in each of these layers - 
and teamwork logic is at the heart of it all.

There are three separate graphs involved (?) - the data being imported,  
the project (data asset)  and its "teamwork graph".  How does the "working 
copy" concept and the importer relate?

EDG default importers appear to put data into the production copy, but 
there are also transactions involved - so what state is the production copy 
in during the import process?

Maybe there is some resource that lays this out like a proper Use Case with 
specified pre-conditions and post-conditions. In a design-by-contract 
environment like TBC we need to know the contract :-(

I suspect there is probably some resource out there that explains all this 
- but neither links or search are my friend..











-- 
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.

Reply via email to