Claus Stadler wrote: > Hi, > > Does Virtuoso (or any other triple store) support the definition of an > alias for a set of named graphs such as > defining <http://ex.org> to refer to a set of graphs such as > <http://ex.org/1> ... <http://ex.org/n> > > The reason is that I want to consider using an approach for triple > management, where triples sharing the same metadata are stored in a > graph*, and an update simply clears the graph and inserts the new data. > However, applications should not have to deal with physical > representation and instead only see a single logical graph. > > So in other words: The goal is to avoid having to filter the graphs > explicitely in the SPARQL query as shown below, but rather specify an > alias in the from clause and have the store do the filtering "behind the > scenes". > Select ?s ?p ?o { > Graph ?g {?s ?p ?o} > Filter(Regex(?g, '^http://ex.org/')) > } > > Kind regards, > Claus
You may want to look in to rdf_sink folders in ODS Briefcase :) these do just that; they allow resftul document based rdf management; and at the same time insert everything in to a named graph of your choice. Every time you update a document graph the triples are removed and reinserted. Additionally, you get two sets of the triples - one set in a graph where the uri of the document holds only those triples from the document; and the other triples all in the main (pre-specified) named graph. Very nice approach; and I found it works wonders :) Many Regards, Nathan