rdf.sh icon indicating copy to clipboard operation
rdf.sh copied to clipboard

which rapper version is required?

Open VladimirAlexiev opened this issue 4 months ago • 8 comments

I installed https://download.librdf.org/binaries/win32/1.0.3/redland-1.0.3-Win32.zip, which includes rapper 1.4.8. Many rdf commands return errors like these:

rdf turtleize test.ttl
  ntriples     for N-Triples
  rdfxml-xmp   for RDF/XML (XMP Profile)
  rdfxml-abbrev for RDF/XML (Abbreviated)
  rdfxml       for RDF/XML
  rss-1.0      for RSS 1.0
  atom         for Atom 1.0
rdf desc foaf:Person
  ntriples     for N-Triples
  rdfxml-xmp   for RDF/XML (XMP Profile)
  rdfxml-abbrev for RDF/XML (Abbreviated)
  rdfxml       for RDF/XML
  rss-1.0      for RSS 1.0
  atom         for Atom 1.0

rdf calls rapper with option -q quiet. If I run without this option, I get:

rapper  -i guess -o turtle test.ttl
rapper.exe: invalid argument `turtle' for `-o'
Valid arguments are:
  ntriples     for N-Triples
  rdfxml-xmp   for RDF/XML (XMP Profile)
  rdfxml-abbrev for RDF/XML (Abbreviated)
  rdfxml       for RDF/XML
  rss-1.0      for RSS 1.0
  atom         for Atom 1.0

And indeed, its help explicitly says that turtle is not a valid output format:

rapper -h
Usage: rapper.exe [OPTIONS] <source URI> [base URI]
Raptor RDF parser utility 1.4.8
Copyright 2000-2006 David Beckett. Copyright 2000-2005 University of Bristol
Parse RDF content at the source URI into RDF triples.

Main options:
  ...
  -o FORMAT  Set the output format to one of:
    ntriples                N-Triples (default)
    rdfxml-xmp              RDF/XML (XMP Profile)
    rdfxml-abbrev           RDF/XML (Abbreviated)
    rdfxml                  RDF/XML
    rss-1.0                 RSS 1.0
    atom                    Atom 1.0

For reference, here's also

roqet -h
Usage: roqet [OPTIONS] <query URI> [base URI]
       roqet [OPTIONS] -e <query string> [base URI]
Rasqal RDF query utility 0.9.11

VladimirAlexiev avatar Feb 14 '24 17:02 VladimirAlexiev

Hi @VladimirAlexiev - its crazy that this tiny little PhD tool which I stopped working on 5 years ago has still users :)

Personally I can not run it anymore myself locally. Thanks to docker we have a working environment so I can answer your question :-)

Screenshot 2024-02-14 at 20 51 46

seebi avatar Feb 14 '24 19:02 seebi

@VladimirAlexiev Can I ask which su-commands are mostly used by you?

(I am working on a re-make which can be installed with pipx ...)

seebi avatar Feb 14 '24 19:02 seebi

@VladimirAlexiev (I think you made a typo: "su-commands" -> "sub-commands")

To have the same in python would be great! :-) and I would probably use it. This tool might still be useful to some after that, though, if they want to use it in CI and keep their process/docker image small. ... except this tool - together with its dependencies - would be bigger then the new tool + its dependencies + a python base installation, which I guess is unlikely.

hoijui avatar Feb 17 '24 07:02 hoijui

to have it in text too: the docker image contains:

rapper 2.0.14
roqet 0.9.32

hoijui avatar Feb 17 '24 07:02 hoijui

Ah and to answer your question (sorry!); the sub-commands most valuable to me:

  • desc
  • diff
  • edit
  • get
  • list
  • ns
  • nscollect
  • turtleize (though there are other tools for that (or very similar))

And.. thanks a lot for your tool! :-) I am currently building a docker image to put it together with other RDF related tools. This is the most potent in the list!

hoijui avatar Feb 17 '24 07:02 hoijui

Ah and to answer your question (sorry!); the sub-commands most valuable to me:

  • desc
  • diff
  • edit
  • get
  • list
  • ns
  • nscollect
  • turtleize (though there are other tools for that (or very similar))

And.. thanks a lot for your tool! :-) I am currently building a docker image to put it together with other RDF related tools. This is the most potent in the list!

Thanks for the information.

Regarding edit: which LDP backend do you use?

seebi avatar Feb 19 '24 17:02 seebi

I have to admit, that I only used a bit less then half of these sub-commands so far, and edit was not among them, but I am sure I will use them, and I want it in my docker image too. I have never used any LDP.

hoijui avatar Feb 20 '24 07:02 hoijui

Uh oh, my rapper/roqet are so old they don't even have a --version parameter. I'll get https://github.com/dajobe/raptor/tags

VladimirAlexiev avatar Feb 27 '24 08:02 VladimirAlexiev