LinkedDataFragments / Client.Java

A Triple Pattern Fragments client for Java (Jena)
MIT License
8 stars 10 forks source link

Unable to find Starting Point #13

Closed sidrashahbaz closed 7 years ago

sidrashahbaz commented 8 years ago

Hi, I have downloaded the source code and trying to use it with my webservices, I have some queries:

  1. What is going to be the input of this client? query or fragment (subject, predicate, object)?
  2. What's the the starting point? Which function I need to call for initiating process?

Note: Checked Testcases to figure out above queries, but did not helped me.

Thanks

mielvds commented 8 years ago

Hi,

Did you check the Readme?

Here's some starting code wit jena:

LinkedDataFragmentGraph ldfg = new    LinkedDataFragmentGraph("http://data.linkeddatafragments.org/dbpedia");
Model model =       ModelFactory.createModelForGraph(ldfg);

The starting point is any fragment URL, like in this case http://data.linkeddatafragments.org/dbpedia, but can be a more specific fragment too.