Re: Example code

2018-03-18 Thread David Moss


On 18/3/18, 6:24 pm, "Laura Morales"  wrote:

>> For example, when using data from a SPARQL endpoint, what is the accepted
   >> way to retrieve it, store it locally and make it available through user
>> interface controls?

>Make a query that returns a jsonld document.

How? Do you have some example code showing how this query is retrieved, dealt 
with locally and made available to an end user through a GUI control?
What I am looking for here is a bridge between what experts glean from reading 
Javadoc and what ordinary people need to use Jena within a GUI based 
application.

I see this kind of example as the missing link that prevents anyone other than 
expert using Jena.
So long as easy to follow examples of how to get from an rdf triplestore to 
information displayed on a screen in a standard GUI way are missing, Jena will 
remain a plaything for expert enthusiasts.

DM











Re: Example code

2018-03-18 Thread Martynas Jusevičius
You can take a look here, these projects use Jena extensively:
https://github.com/AtomGraph/Core
https://github.com/AtomGraph/Processor
https://github.com/AtomGraph/Web-Client

On Sun, Mar 18, 2018 at 4:19 AM, David Moss  wrote:

> Nearly all the example code on the web for Jena is restatement of Javadoc.
> This is better than nothing, but what seems to be missing is examples of
> how Jena is used in real-world applications.
> I believe publishing practical examples would dramatically increase the
> use of Jena and semantic processing in general.
>
> Without a pool of practical examples people using Jena are working in
> isolation.
> There are so many ways of achieving results, but which are the ways people
> are actually using in real applications?
>
> For example, when using data from a SPARQL endpoint, what is the accepted
> way to retrieve it, store it locally and make it available through user
> interface controls?
> As far as I can tell there are no examples of how to do this anywhere.
>
> ie How would you go about populating a dropdown list in a UI with data
> from a SPARQL endpoint?
>
> Am I missing something (I hope so!)
> If not, does anyone want to contribute some examples of using Jena in
> real-world applications?
>
> If it turns out there are no such examples out there and no-one wants to
> contribute examples, I will write some myself. But they will be awful!
> I’d much rather people with experience provided this much needed
> information. I’m happy to collate and publish.
>
> DM
>
>
>
>
>
>
>
>


Re: Example code

2018-03-18 Thread Laura Morales
> For example, when using data from a SPARQL endpoint, what is the accepted
> way to retrieve it, store it locally and make it available through user
> interface controls?

Make a query that returns a jsonld document.