On 7/23/11 12:07 PM, brucewhealton wrote:
So, moving the instances to the new ontology is not possible with the
free version?  And the read-only issue is moot, right?  If I just
create those instances directly in the new ontology, they will work
fine, right?  Whether you move the instances or recreate them and then
remove them from the other, it doesn't really matter, does it?
Bruce

Hello Bruce; TBC-Free includes a fully functional SPARQL engine.  You can use this to move instances from one graph to another more flexibly than anything a UI can offer.  For example, let's say you want to move only those instances whose create date was before some date.  Then you can apply the following in the SPARQL view with the source model open.

DELETE
{  ?person a foaf:Person .
    ?person ?p ?o
}
INSERT
{  GRAPH <target-graph-uri-here>
   {  ?person a foaf:Person .
      ?person ?p ?o
   }
}
WHERE
{   ?person a foaf:Person .
    ?person :createDate ?date .
    FILTER (?date > "2011-07-10"^^xsd:date)
    ?person ?p ?o
}

Note the target graph is the base URI of the file you want to mode it to.  Composer's workspace acts as a named graph repository with graphs named by the base URI.  With that structure you can move data to/from any graph in the workspace using SPARQL.

Of course, this is just a small example.  You can specify arbitrarily complex relationships in the query body to specify exactly what you want to move.

-- Scott



--
You received this message because you are subscribed to the Google
Group "TopBraid Suite Users", the topics of which include TopBraid Composer,
TopBraid Live, TopBraid Ensemble, SPARQLMotion and SPIN.
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-users?hl=en

Reply via email to