Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

which rapper version is required? #19

Open
VladimirAlexiev opened this issue Feb 14, 2024 · 8 comments
Open

which rapper version is required? #19

VladimirAlexiev opened this issue Feb 14, 2024 · 8 comments

Comments

@VladimirAlexiev
Copy link

VladimirAlexiev commented Feb 14, 2024

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
@seebi
Copy link
Owner

seebi commented Feb 14, 2024

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
Copy link
Owner

seebi commented Feb 14, 2024

@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 ...)

@hoijui
Copy link
Contributor

hoijui commented Feb 17, 2024

@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
Copy link
Contributor

hoijui commented Feb 17, 2024

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

rapper 2.0.14
roqet 0.9.32

@hoijui
Copy link
Contributor

hoijui commented Feb 17, 2024

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!

@seebi
Copy link
Owner

seebi commented Feb 19, 2024

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?

@hoijui
Copy link
Contributor

hoijui commented Feb 20, 2024

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.

@VladimirAlexiev
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants