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 <[email protected]> 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
>>
>

Reply via email to