You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jena.apache.org by Martynas Jusevičius <ma...@graphity.org> on 2014/09/04 16:32:15 UTC

Re: Assembler for Datasets

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

Posted by Andy Seaborne <an...@apache.org>.
On 04/09/14 15:32, Martynas Jusevičius wrote:
> 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?

The Dataset stuff is actually an extension to the core Assembler 
machinery and it's in ARQ.  There are also some helpers in AssemblerUtils.

There isn't the code to load a TriG file - they should be, it just 
hasn't been written.

	Andy

>
> Martynas
>
> On Sun, Aug 24, 2014 at 3:12 PM, Andy Seaborne <an...@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
>>>
>>