Re: jena-csv

2019-01-15 Thread Jean-Marc Vanel
Not knowing that Jena-csv existed, I developed an extension to Any23,
adding features for CSV. I use it, and there is documentation:
https://github.com/jmvanel/semantic_forms/wiki/Semantization#step-1-direct-mappping




Le lun. 14 janv. 2019 17:21, Andy Seaborne  a écrit :

> The project can't keep acquiring "stuff" so this is our first attempt to
> clearup modules where we had little sign they were in use.
>
>
> users@jena was sent an email on 2018-12-14.
> Subject: "Retiring Jena modules"
>
>
> https://lists.apache.org/thread.html/edd5876b070f24091e19b5c1dd274ef46c74a0f920d419a29a59f66b@%3Cusers.jena.apache.org%3E
>
>
> On 14/01/2019 15:03, Piotr Nowara wrote:> Hi Bruno,
>  >
>  > thanks for your answer. I followed your github link but unfortunately I
>  > don't see any readme file with instructions there.
>  >
>
> It's a maven project - "mvn clean install"
>
> Or if you want to grab the source to incorporate into you project, then
> the source is directly packaged as a sources jar file:
>
>
> http://central.maven.org/maven2/org/apache/jena/jena-csv/3.9.0/jena-csv-3.9.0-sources.jar
>
> (that is the one that makes browsing Jena source in an IDE work)
>
>  Andy
>
> On 14/01/2019 16:11, ajs6f wrote:
> > The module was retired, as Bruno explained, for lack of any maintainer.
> We can't keep code in the codebase when no one will take responsibility for
> it. Do you perchance have some time available to commit to maintaining the
> jena-csv module?
> >
> > ajs6f
> >
> >> On Jan 14, 2019, at 10:17 AM, Piotr Nowara 
> wrote:
> >>
> >> Hi Andy,
> >>
> >> thanks for those links.
> >>
> >> Please tell me was the jena-csv module retired just because that CSVW
> >> standard or there are some bugs that no one has time or interest to fix?
> >>
> >> I was using jena-csv for loading  CSV files and it was doing its job
> pretty
> >> well. I don't need another W3C standard to produce a ton of boiler-plate
> >> code  (pardon, set of "metadata" files fot the Web) and  then parse it
> with
> >> Ruby scripts from my JAVA application.
> >>
> >> Thanks,
> >> Piotr
> >>
> >> pon., 14 sty 2019 o 08:32 Andy Seaborne  napisał(a):
> >>
> >>> CSVW is the W3C standard relating to converting CSV to RDF.  There are
> >>> tools (e.g. below) that will do that and output a file so it is not
> >>> limited to java.
> >>>
> >>> Andy
> >>>
> >>>
> >>> The W3C CSVW implementation report lists a few in the EARL files:
> >>>
> >>>
> https://w3c.github.io/csvw/tests/reports/index.html#individual-test-results
> >>>
> >>> https://rubygems.org/gems/rdf-tabular (Ruby / The Unlicense)
> >>> https://github.com/theodi/csvlint.rb (Ruby / MIT license)
> >>> https://github.com/sebneu/csvw-parser (ruby / MIT)
> >>>
> >>> Also:
> >>> http://www.greggkellogg.net/2015/04/implementing-csv-on-the-web/
> >>>
> >>> Not CSVW:
> >>> https://github.com/tarql/tarql
> >>>
> >>> On 14/01/2019 09:03, Bruno P. Kinoshita wrote:
>  Hi Piotr,
> 
>  I believe it was retired for the lack of developer bandwidth to
> maintain
> >>> it.
> 
> 
>  If you look at the GitHub repository, there is a README at the
> jena-csv
> >>> folder now. It instructs users to grab - if necessary - jena-csv from
> jena
> >>> 3.9.0 (https://github.com/apache/jena/tree/jena-3.9.0/jena-csv).
>  Cheers
>  Bruno
> 
> 
> 
> 
>  
>  From: Piotr Nowara 
>  To: users@jena.apache.org
>  Sent: Monday, 14 January 2019 9:38 PM
>  Subject: jena-csv
> 
> 
> 
>  Hi,
> 
> 
>  I'm using jena-csv for importing CSV files to Jena. Now the 3.10
> release
> 
>  notes say it's no longer a part of the release.
> 
> 
>  What is the replacement for this retired module?
> 
>  Why it was retired? (I've read the linked JIRA and discussion but I
> 
>  couldn't find the reason)
> 
> 
>  Thanks,
> 
>  Piotr
> 
> >>>
> >
>


Re: Distro package

2019-01-15 Thread Dan Pritts

Siddhesh Rane wrote on 1/15/19 7:01 AM:

As far as I know Docker container is a linux-only technology as it
uses the cgroup feature of linux kernel. Docker on Windows uses
VirtualBox  to first emulate linux kernel and then run containers on
it. So I dont think non-linux should be a concern.

AFAICT Docker can manage windows-native containers.

https://docs.microsoft.com/en-us/virtualization/windowscontainers/about/

Whether you would want to deal with those is another question.


--
Dan Pritts
ICPSR Computing & Network Services
University of Michigan


Re: Fuseki 2: Serving RDF/XML over HTTP

2019-01-15 Thread Kevin Dreßler
Thanks Andy, that helped a lot indeed!

Best,
Kevin

> On 14. Jan 2019, at 17:13, Andy Seaborne  wrote:
> 
> The problem is that you are asking the dataset for RDF/XML.
> 
> Datasets include the named graphs.  It needs TriG or N-Quads.
> 
> So you ask for RDF/XML, and content negotiation says "can't - here's nmy 
> default (which is N-Quads) and then the code ignores the Content-type and 
> forces RDF/XML. It then fails to parse.
> 
> 
> This works for me - ask for the default graph:
> 
> "http://localhost:"+PORT+"/birch?default;
> 
> Below is that done twice - using RDFConnection and as in the example.
> 
> Fuseki logging is turned on which can help debug conneg.
> 
>Andy
> 
> public static void main(String[] args) throws Exception {
> 
>FusekiLogging.setLogging();
>int PORT = WebLib.choosePort();
> 
>FusekiServer server = FusekiServer.create()
>.port(PORT)
>.verbose(true)
>.add("/birch", DatasetFactory.createTxnMem())
>.build();
>server.start();
>// Server startup.
>Lib.sleep(100);
> 
>// Version 1
>try (RDFConnection conn = RDFConnectionRemote
>.create()
>.destination("http://localhost:"+PORT+"/birch;)
>.acceptHeaderGraph("application/rdf+xml")
>.build()) {
>Model model = conn.fetch();
>RDFDataMgr.write(System.out,  model, Lang.RDFXML);
>}
> 
>// Version 2
>URL url = new URL("http://localhost:"+PORT+"/birch?default;);
> 
>URLConnection conn = url.openConnection();
>conn.setRequestProperty("Accept", "application/rdf+xml");
>Model model = ModelFactory.createDefaultModel();
>model.read(conn.getInputStream(), null);
> //RDFDataMgr.read(model, conn.getInputStream(), Lang.RDFXML);
>RDFDataMgr.write(System.out,  model, Lang.RDFXML);
>System.exit(0);
> }


Re: jena-csv

2019-01-15 Thread Martynas Jusevičius
May I add: https://github.com/AtomGraph/CSV2RDF

It's not that feature rich (supports minimal mode only), but has
already proved to be pretty scalable.

On Tue, Jan 15, 2019 at 1:19 PM Andy Seaborne  wrote:
>
> More, and these looks like active projects:
>
> https://github.com/rdf-ext/rdf-parser-csvw
> (javascript)
>
> https://github.com/Swirrl/csv2rdf
> Clojure. License: EPL-1.0
>
>  Andy
>
> On 14/01/2019 16:21, Andy Seaborne wrote:
> > The project can't keep acquiring "stuff" so this is our first attempt to
> > clearup modules where we had little sign they were in use.
> >
> >
> > users@jena was sent an email on 2018-12-14.
> > Subject: "Retiring Jena modules"
> >
> > https://lists.apache.org/thread.html/edd5876b070f24091e19b5c1dd274ef46c74a0f920d419a29a59f66b@%3Cusers.jena.apache.org%3E
> >
> >
> >
> > On 14/01/2019 15:03, Piotr Nowara wrote:> Hi Bruno,
> >  >
> >  > thanks for your answer. I followed your github link but unfortunately I
> >  > don't see any readme file with instructions there.
> >  >
> >
> > It's a maven project - "mvn clean install"
> >
> > Or if you want to grab the source to incorporate into you project, then
> > the source is directly packaged as a sources jar file:
> >
> > http://central.maven.org/maven2/org/apache/jena/jena-csv/3.9.0/jena-csv-3.9.0-sources.jar
> >
> >
> > (that is the one that makes browsing Jena source in an IDE work)
> >
> >  Andy
> >
> > On 14/01/2019 16:11, ajs6f wrote:
> >> The module was retired, as Bruno explained, for lack of any
> >> maintainer. We can't keep code in the codebase when no one will take
> >> responsibility for it. Do you perchance have some time available to
> >> commit to maintaining the jena-csv module?
> >>
> >> ajs6f
> >>
> >>> On Jan 14, 2019, at 10:17 AM, Piotr Nowara 
> >>> wrote:
> >>>
> >>> Hi Andy,
> >>>
> >>> thanks for those links.
> >>>
> >>> Please tell me was the jena-csv module retired just because that CSVW
> >>> standard or there are some bugs that no one has time or interest to fix?
> >>>
> >>> I was using jena-csv for loading  CSV files and it was doing its job
> >>> pretty
> >>> well. I don't need another W3C standard to produce a ton of boiler-plate
> >>> code  (pardon, set of "metadata" files fot the Web) and  then parse
> >>> it with
> >>> Ruby scripts from my JAVA application.
> >>>
> >>> Thanks,
> >>> Piotr
> >>>
> >>> pon., 14 sty 2019 o 08:32 Andy Seaborne  napisał(a):
> >>>
>  CSVW is the W3C standard relating to converting CSV to RDF.  There are
>  tools (e.g. below) that will do that and output a file so it is not
>  limited to java.
> 
>  Andy
> 
> 
>  The W3C CSVW implementation report lists a few in the EARL files:
> 
>  https://w3c.github.io/csvw/tests/reports/index.html#individual-test-results
> 
> 
>  https://rubygems.org/gems/rdf-tabular (Ruby / The Unlicense)
>  https://github.com/theodi/csvlint.rb (Ruby / MIT license)
>  https://github.com/sebneu/csvw-parser (ruby / MIT)
> 
>  Also:
>  http://www.greggkellogg.net/2015/04/implementing-csv-on-the-web/
> 
>  Not CSVW:
>  https://github.com/tarql/tarql
> 
>  On 14/01/2019 09:03, Bruno P. Kinoshita wrote:
> > Hi Piotr,
> >
> > I believe it was retired for the lack of developer bandwidth to
> > maintain
>  it.
> >
> >
> > If you look at the GitHub repository, there is a README at the
> > jena-csv
>  folder now. It instructs users to grab - if necessary - jena-csv
>  from jena
>  3.9.0 (https://github.com/apache/jena/tree/jena-3.9.0/jena-csv).
> > Cheers
> > Bruno
> >
> >
> >
> >
> > 
> > From: Piotr Nowara 
> > To: users@jena.apache.org
> > Sent: Monday, 14 January 2019 9:38 PM
> > Subject: jena-csv
> >
> >
> >
> > Hi,
> >
> >
> > I'm using jena-csv for importing CSV files to Jena. Now the 3.10
> > release
> >
> > notes say it's no longer a part of the release.
> >
> >
> > What is the replacement for this retired module?
> >
> > Why it was retired? (I've read the linked JIRA and discussion but I
> >
> > couldn't find the reason)
> >
> >
> > Thanks,
> >
> > Piotr
> >
> 
> >>


Re: jena-csv

2019-01-15 Thread Andy Seaborne

More, and these looks like active projects:

https://github.com/rdf-ext/rdf-parser-csvw
(javascript)

https://github.com/Swirrl/csv2rdf
Clojure. License: EPL-1.0

Andy

On 14/01/2019 16:21, Andy Seaborne wrote:
The project can't keep acquiring "stuff" so this is our first attempt to 
clearup modules where we had little sign they were in use.



users@jena was sent an email on 2018-12-14.
Subject: "Retiring Jena modules"

https://lists.apache.org/thread.html/edd5876b070f24091e19b5c1dd274ef46c74a0f920d419a29a59f66b@%3Cusers.jena.apache.org%3E 




On 14/01/2019 15:03, Piotr Nowara wrote:> Hi Bruno,
 >
 > thanks for your answer. I followed your github link but unfortunately I
 > don't see any readme file with instructions there.
 >

It's a maven project - "mvn clean install"

Or if you want to grab the source to incorporate into you project, then 
the source is directly packaged as a sources jar file:


http://central.maven.org/maven2/org/apache/jena/jena-csv/3.9.0/jena-csv-3.9.0-sources.jar 



(that is the one that makes browsing Jena source in an IDE work)

     Andy

On 14/01/2019 16:11, ajs6f wrote:
The module was retired, as Bruno explained, for lack of any 
maintainer. We can't keep code in the codebase when no one will take 
responsibility for it. Do you perchance have some time available to 
commit to maintaining the jena-csv module?


ajs6f

On Jan 14, 2019, at 10:17 AM, Piotr Nowara  
wrote:


Hi Andy,

thanks for those links.

Please tell me was the jena-csv module retired just because that CSVW
standard or there are some bugs that no one has time or interest to fix?

I was using jena-csv for loading  CSV files and it was doing its job 
pretty

well. I don't need another W3C standard to produce a ton of boiler-plate
code  (pardon, set of "metadata" files fot the Web) and  then parse 
it with

Ruby scripts from my JAVA application.

Thanks,
Piotr

pon., 14 sty 2019 o 08:32 Andy Seaborne  napisał(a):


CSVW is the W3C standard relating to converting CSV to RDF.  There are
tools (e.g. below) that will do that and output a file so it is not
limited to java.

    Andy


The W3C CSVW implementation report lists a few in the EARL files:

https://w3c.github.io/csvw/tests/reports/index.html#individual-test-results 



https://rubygems.org/gems/rdf-tabular (Ruby / The Unlicense)
https://github.com/theodi/csvlint.rb (Ruby / MIT license)
https://github.com/sebneu/csvw-parser (ruby / MIT)

Also:
http://www.greggkellogg.net/2015/04/implementing-csv-on-the-web/

Not CSVW:
https://github.com/tarql/tarql

On 14/01/2019 09:03, Bruno P. Kinoshita wrote:

Hi Piotr,

I believe it was retired for the lack of developer bandwidth to 
maintain

it.



If you look at the GitHub repository, there is a README at the 
jena-csv
folder now. It instructs users to grab - if necessary - jena-csv 
from jena

3.9.0 (https://github.com/apache/jena/tree/jena-3.9.0/jena-csv).

Cheers
Bruno





From: Piotr Nowara 
To: users@jena.apache.org
Sent: Monday, 14 January 2019 9:38 PM
Subject: jena-csv



Hi,


I'm using jena-csv for importing CSV files to Jena. Now the 3.10 
release


notes say it's no longer a part of the release.


What is the replacement for this retired module?

Why it was retired? (I've read the linked JIRA and discussion but I

couldn't find the reason)


Thanks,

Piotr







Re: Distro package

2019-01-15 Thread Siddhesh Rane
On Mon, Nov 5, 2018 at 5:55 PM Andy Seaborne  wrote:
>
> The area to work on is where/how databases are managed between docker
> and host. The issue is efficiency of mmap access for TDB, especially for
> non-linux host OS's. I am wondering if VOLUMEs are the way to go.

As far as I know Docker container is a linux-only technology as it
uses the cgroup feature of linux kernel. Docker on Windows uses
VirtualBox  to first emulate linux kernel and then run containers on
it. So I dont think non-linux should be a concern.
For database storage, we can probably have a convention that inside
container, /mnt/tdb/ is where all databases are stored. If anyone
wants to attach db from host they can do so with docker run -v
/host/db/path:/mnt/tdb/ jena/fuseki

Regards
Siddhesh Rane