Thank you!

On Wed, Dec 27, 2017 at 9:58 PM, Andy Seaborne <[email protected]> wrote:

> Look at
>   class DynamicDatasets
>   use of DatasetDescription
>   SPARQL_Query.decideDataset
>
>     Andy
>
>
> On 27/12/17 20:37, Martynas Jusevičius wrote:
>
>> Hey,
>>
>> I am implementing some of the last bits in the SPARQL Protocol,
>> namely 2.1.4 Specifying an RDF Dataset and 2.2.3 Specifying an RDF
>> Dataset.
>>
>> Would the following be a correct interpretation given a default Jena
>> Dataset?
>>
>>      public Dataset specifyDataset(Dataset defaultDataset, List<URI>
>> defaultGraphUris, List<URI> namedGraphUris)
>>      {
>>          if (!defaultGraphUris.isEmpty() || !namedGraphUris.isEmpty())
>>          {
>>              Dataset specified = DatasetFactory.create();
>>
>>              for (URI defaultGraphUri : defaultGraphUris)
>>
>> specified.getDefaultModel().add(defaultDataset.getNamedModel
>> (defaultGraphUri.toString()));
>>              for (URI namedGraphUri : namedGraphUris)
>>                  specified.addNamedModel(namedGraphUri.toString(),
>> defaultDataset.getNamedModel(namedGraphUri.toString()));
>>
>>              return specified;
>>          }
>>
>>          return defaultDataset;
>>      }
>>
>> I assume there should be some similar code in Fuseki somewhere.
>>
>> Thanks.
>>
>>
>> Martynas
>>
>>

Reply via email to