Re: InfModels in Dataset on Fuseki.

2019-07-15 Thread Claude Warren
After more digging I came across the GraphMaker interface in the
DatasetGraphFactory.  Since what I want to do is reason over a TDB graph
what I am planning on doing is

1) creating a SoftDatasetGraphMap (DatasetGraph) that will discard the
datasets when garbage collection needs the space.
2) create a GraphMaker that wraps a Dataset (TDB in my case) and will pull
grapsh from the underlying dataset.
3) Given that I have a reasoner figure out how to apply the reasoner to a
specifc graph in the TDB dataset and return the resulting InfModel.  That
model will be placed in the SoftDatasetGraphMap.
4) Use the SoftDatasetGraphMap to construct the Dataset that Fuseki will
serve.

I am hoping that this strategy will allow me to create new named graphs in
TDB and when they are served  by Fuseki have them be reasoned over.

In addition, when the graph is no longer being used (and memory is at a
premium) the graph can be discarded as the reasoner can be recreated from
the underlying TDB.

Thoughts?

Claude

On Mon, Jul 15, 2019 at 11:57 AM Andy Seaborne  wrote:

> Hi Claude,
>
> On 13/07/2019 22:26, Claude Warren wrote:
> > Greetings,
> >
> > I know that Fuseki serves datasets.
> >
> > I know that the RDFConnecton will use Fuseki as its storage.
> >
> > I know that the RDFConnection will create named graphs if they are in the
> > dataset in the connection.loadDataset( dataset ) call.
> >
> > I know that if RDFConnection is talking to Fuseki it will create the
> named
> > graphs in the dataset on Fuseki.
> >
> > I have a rulesReasoner and a schema and know how to make and InfModel
> from
> > it and a schema.
> >
> > What I don't know is how to get Fuseki to create the new named graphs as
> > InfModels when created via the RDFConnection.
> >
> > Is this possible?
>
> An InfModel within a dataset needs specific setup in the configuration
> file and that isn't accessible via RDFConnection.
>
> The setup with inference uses the general linked-graph dataset
> implementation so there is nothing to stop its configuration while
> running.  It is specific to that kind of dataset.
>
> RDFConnection isn't the right place - it is more like a server
> administration function.  Being able to upload a new, replacement
> dataset configuration could be done (and avoid a server restart).  Only
> (?? I think - it's been a long time since Ii looked) new databases can
> be created by configuration upload.
>
> >
> > Additionally is it possible to have the DeductionsModel maintained in a
> TDB
> > datastore not in-memory as the documentation states?
>
> Don't know - sorry.
>
> > I figure I can put the schema in the dataset with the other named graphs
> so
> > that it is not in memory either.
> >
> > Any help would be appreciated.
> >
> > Claude
> >
> >
> >
>


-- 
I like: Like Like - The likeliest place on the web

LinkedIn: http://www.linkedin.com/in/claudewarren


Re: InfModels in Dataset on Fuseki.

2019-07-15 Thread Andy Seaborne

Hi Claude,

On 13/07/2019 22:26, Claude Warren wrote:

Greetings,

I know that Fuseki serves datasets.

I know that the RDFConnecton will use Fuseki as its storage.

I know that the RDFConnection will create named graphs if they are in the
dataset in the connection.loadDataset( dataset ) call.

I know that if RDFConnection is talking to Fuseki it will create the named
graphs in the dataset on Fuseki.

I have a rulesReasoner and a schema and know how to make and InfModel from
it and a schema.

What I don't know is how to get Fuseki to create the new named graphs as
InfModels when created via the RDFConnection.

Is this possible?


An InfModel within a dataset needs specific setup in the configuration 
file and that isn't accessible via RDFConnection.


The setup with inference uses the general linked-graph dataset 
implementation so there is nothing to stop its configuration while 
running.  It is specific to that kind of dataset.


RDFConnection isn't the right place - it is more like a server 
administration function.  Being able to upload a new, replacement 
dataset configuration could be done (and avoid a server restart).  Only 
(?? I think - it's been a long time since Ii looked) new databases can 
be created by configuration upload.




Additionally is it possible to have the DeductionsModel maintained in a TDB
datastore not in-memory as the documentation states?


Don't know - sorry.


I figure I can put the schema in the dataset with the other named graphs so
that it is not in memory either.

Any help would be appreciated.

Claude





Re: issue installing jena 3 in windows 8

2019-07-15 Thread Andy Seaborne

This is asked as JENA-1730 about the same time.

(The screenshot does not have details of the error building Jena from 
source. It is probably an environmental issue. (Possibly because the 
tests on Windows use a lot of temporary file space but it could be other 
factors).



You don't need to compile it yourself just to use it with Eclipse. Set 
up a maven project, either in Eclipse or write a POM and import it,


https://jena.apache.org/download/maven.html

  
org.apache.jena
apache-jena-libs
pom
3.12.0
  

The screen shot only says there is an error - the reason is further up 
in the output.


Andy

On 15/07/2019 08:20, Lorenz B. wrote:

Hello,

just as a general comment, Jena artifacts are published in the official
Maven repo. No need to build from source or download them manually if
your project uses Maven, Ivy or SBT.

Can you please explain how you want to use Jena?
- From Java? If so, is it a Maven project?
- From CLI? If so, there are downloadable releases which contains all
the tools and scripts.



More comments inline:




I am trying to install jena 3.12.0 in windows 8 to use it with eclipse.

which Java version?


I followed instructions of this web page:

https://jena.apache.org/getting_involved/index.html

what does this mean?


at first the repository indicated there seems to be invalid, then I
used the following repository:

https://github.com/apache/jena.git

and followed the procedure from command prompt:

git clone  https://github.com/apache/jena.git

cd jena
mvn clean install
nevertheless, after running for several minutes there was a failure.

I attached the screenshot.

attachments are not allowed on this mailing list. Please provide a link
to the uploaded screenshot.


Then, I wonder what could happens here?, the result is similar if I
download the binaries and try to compile and install.


Why do you download binaries and then want to compile them? Binaries are
already compiled. And install what or how?








Any recommendation would be appreciated.


best regards


Luis Ramos




Re: issue installing jena 3 in windows 8

2019-07-15 Thread Lorenz B.
Hello,

just as a general comment, Jena artifacts are published in the official
Maven repo. No need to build from source or download them manually if
your project uses Maven, Ivy or SBT.

Can you please explain how you want to use Jena?
- From Java? If so, is it a Maven project?
- From CLI? If so, there are downloadable releases which contains all
the tools and scripts.



More comments inline:

>
>
> I am trying to install jena 3.12.0 in windows 8 to use it with eclipse.
which Java version?
>
> I followed instructions of this web page:
>
> https://jena.apache.org/getting_involved/index.html
what does this mean?
>
> at first the repository indicated there seems to be invalid, then I
> used the following repository: 
>
> https://github.com/apache/jena.git
>
> and followed the procedure from command prompt:
>
> git clone  https://github.com/apache/jena.git
>
> cd jena
> mvn clean install
> nevertheless, after running for several minutes there was a failure. 
>
> I attached the screenshot. 
attachments are not allowed on this mailing list. Please provide a link
to the uploaded screenshot.
>
> Then, I wonder what could happens here?, the result is similar if I
> download the binaries and try to compile and install.

Why do you download binaries and then want to compile them? Binaries are
already compiled. And install what or how?






>
> Any recommendation would be appreciated.
>
>
> best regards
>
>
> Luis Ramos
>
>
-- 
Lorenz Bühmann
AKSW group, University of Leipzig
Group: http://aksw.org - semantic web research center