Sign inSign up

cnstntn/sem2ls

By cnstntn

Updated over 9 years ago

Some tools to work with ontologies: rdf2hdt, hdt2rdf, raptor (rapper), xsltproc...

Image
1

1.0K

cnstntn/sem2ls repository overview

Semantic-tools-docker

Some tools to work with ontologies: rdf2hdt, hdt2rdf, raptor (rapper), xsltproc...

Available utils:

HDT Tools:

  • rdf2hdt
  • hdt2rdf
  • hdtSearch

Raptor (rapper). C library that provides a set of parsers and serializers that generate Resource Description Framework (RDF) triples by parsing syntaxes or serialize the triples into a syntax. The supported parsing syntaxes are RDF/XML, N-Quads, N-Triples 1.0 and 1.1, TRiG, Turtle 2008 and 2013, RDFa 1.0 and 1.1, RSS tag soup including all versions of RSS, Atom 1.0 and 0.3, GRDDL and microformats for HTML, XHTML and XML. The serializing syntaxes are RDF/XML (regular, abbreviated, XMP), Turtle 2013, N-Quads, N-Triples 1.1, Atom 1.0, RSS 1.0, GraphViz DOT, HTML, JSON and mKR.

Rasqal (roqet). C library that handles Resource Description Framework (RDF) query language syntaxes, query construction and execution of queries returning results as bindings, boolean, RDF graphs/triples or syntaxes. The supported query languages are SPARQL Query 1.0, SPARQL Query 1.1, SPARQL Update 1.1 (no executing) and the Experimental SPARQL extensions (LAQRS). Rasqal can write binding query results in the SPARQL XML, SPARQL JSON, CSV, TSV, HTML, ASCII tables, RDF/XML and Turtle / N3 and read them in SPARQL XML, CSV, TSV, RDF/XML and Turtle / N3.

Xsltproc command line xslt processor

Libz. A compression library provides in-memory compression and decompression functions, including integrity checks of the uncompressed data. This version of the library supports only one compression method (deflation) but other algorithms will be added later and will have the same stream interface.

Serd a lightweight C library for RDF syntax which supports reading and writing Turtle and NTriples.

Kyoto Cabinet (optional) Enables generating big RDF datasets on machines without much RAM memory, by creating a temporary Kyoto Cabinet database. The dependency is deactivated by default; to activate it, uncomment the line KYOTO_SUPPORT=true in the Makefile and edit the library include path (INCLUDES=) as needed.

Usage example

Pull Docker image

docker pull cnstntn/sem2ls  

Help

docker run -it --rm cnstntn/sem2ls rdf2hdt -h

Example

docker run -it --rm -v "$(pwd)":/data cnstntn/sem2ls rdf2hdt -f turtle /data/myfile.turtle /data/myfile.hdt

Roqet example echo $(docker run -it --rm -v "$(pwd)":/data cnstntn/sem2ls roqet -i sparql -e 'SELECT * WHERE { ?s ?p ?o }' -D /data/source.owl -F rdfxml -r table) > res.txt

Tag summary

Content type

Image

Digest

Size

460.8 MB

Last updated

over 9 years ago

docker pull cnstntn/sem2ls