Re: Assembler for Datasets

2014-09-04 Thread Martynas Jusevičius
Thanks Andy,

I was looking at it now and realized my use case was a little bit
different still.

I have a TriG file with quads that I want to load into Dataset, and a
Turtle file that I want to add to it as named graph. Is that possible
with assembler?

And looking at the Assembler class, I couldn't see any openDataset()
or similar methods that would return the assembled Dataset?


Martynas

On Sun, Aug 24, 2014 at 3:12 PM, Andy Seaborne a...@apache.org wrote:
 On 23/08/14 23:43, Martynas Jusevičius wrote:

 Hey,

 are there any examples on how to assemble a Dataset, with files
 becoming (possibly renamed) named graphs?


 To be strictly accurate: Graphs don't have names - the slot in the dataset
 has the name.


 Or maybe assembler is not
 the right tool for this?


 It is ...



 I checked the how-to but it's mostly about Models.
 https://jena.apache.org/documentation/assembler/assembler-howto.html



 You are right - it is missing.

 These might help:

 http://jena.apache.org/documentation/tdb/assembler.html

 http://jena.apache.org/documentation/serving_data/

 specifically Fuseki Server and general dataset descriptions


 #dataset rdf:type ja:RDFDataset ;
ja:defaultGraph #modelDft ;
ja:namedGraph
[ ja:graphName  http://example.org/name1 ;
  ja:graph  #model1 ] ;
.

 then #modelDft and #model1 are graph descriptions.

 Martynas
 graphityhq.com




Re: Assembler for Datasets

2014-08-24 Thread Andy Seaborne

On 23/08/14 23:43, Martynas Jusevičius wrote:

Hey,

are there any examples on how to assemble a Dataset, with files
becoming (possibly renamed) named graphs?


To be strictly accurate: Graphs don't have names - the slot in the 
dataset has the name.



Or maybe assembler is not
the right tool for this?


It is ...



I checked the how-to but it's mostly about Models.
https://jena.apache.org/documentation/assembler/assembler-howto.html




You are right - it is missing.

These might help:

http://jena.apache.org/documentation/tdb/assembler.html

http://jena.apache.org/documentation/serving_data/

specifically Fuseki Server and general dataset descriptions


#dataset rdf:type ja:RDFDataset ;
   ja:defaultGraph #modelDft ;
   ja:namedGraph
   [ ja:graphName  http://example.org/name1 ;
 ja:graph  #model1 ] ;
   .

then #modelDft and #model1 are graph descriptions.


Martynas
graphityhq.com





Assembler for Datasets

2014-08-23 Thread Martynas Jusevičius
Hey,

are there any examples on how to assemble a Dataset, with files
becoming (possibly renamed) named graphs? Or maybe assembler is not
the right tool for this?

I checked the how-to but it's mostly about Models.
https://jena.apache.org/documentation/assembler/assembler-howto.html


Martynas
graphityhq.com