There is a newer version of the record available.

Published November 15, 2021 | Version 1.0.1

Cleaned LargeRDFBench dumps

  • 1. Federal University of Santa Catarina

Description

Dumps for each of the LargeRDFBench datasets in two formats:

  1. A single N-Triples (no prefixes, no unquoted numbers/booleans) file compressed with zstd
  2. A HDT file with sidecar index file (.hdt.index.v1-1) for faster querying.
  3. .mark files, which are JSON files storing the SHA-256 hashes of the above files and the input dump file from the original LargeRDFBench.

The files in this dataset where generated using the "fix" subcommand of the freqel-driver command-line utility. The files in this zenodo dataset where generated from commit 47cea26 of said repository. Nearly all of the cleanup code however is from rdfit version 1.0.6, which is available from maven central.

There are four reasons to use this dataset as a substitute for the original:

  • Flatter file structure: there is a single file per dataset
  • All data is in N-Triples (no RDF/XML or Turtle syntax in .nt-named files)
  • Valid IRIs and valid N-Triples syntax (no parsers errors, at most warnings)
  • Provided .hdt files are directly queryable

Since the original dumps have syntax errors and invalid IRIs, there are multiple ways to handle such issues and this dataset is one set of choices for handling them. For example, the Virtuoso endpoints of the original (as of commit 49d1401) ingest and expose invalid IRIs and langtags without complaining. Thus, there are SPARQL queries for which the results obtained using this cleaned version and the original Virtuoso endpoint bundles will differ. As far as we know, such possibility does not apply to the LargeRDFBench SPARQL queries. No triples were discarded in the cleaning process, rather triples with invalid IRIs (as per RFC 3987) and invalid language tags are mapped to valid counter parts. Literals are mostly unaffected, except for one particular syntax violation in the Affymetrix dataset: non-escaped null characters (U+0000) in lexical forms were replaced with spaces (U+0020) to make HDT files possible. The syntax fixes were made using RIt.tolerant() functionality of the rdfit library, version 1.0.6. The list of transformations (beyond flattening the file structure and storing as N-Ttiples and HDT) was:

  • Percent-encode characters not allowed at their current position in the IRI by RFC 3987.
    • If percent-encoding is not allowed at that position by RFC 3987 (e.g., port rule), the character will be erased
  • Erase invalid character encodings (when the binary representation is so messed up it does not appear as the wrong character but is straight up invalid UTF-8)
  • Replace '_' in language tags with '-' (e.g., en_US becomes en-US)
  • For NT/Turtle, \-escape occurrences of \r (0x0D) and \n (0x0A) inside single-quoted lexical forms.
  • For NT/Turtle, replace \ with \\ in any \x-escape where x is not in tbnrf"' (see ECHAR).
  • For NT/Turtle, identify UCHAR) escape sequences that represent an UTF-8 encoding instead of an unicode code point. Such sequences are composed of only byte-sized code points, which value sequence correspond to a valid UTF-8 sequence and where at least one such byte has a value that is the code point of a control character. Given such conditions, the sequence of UCHARs is replaced by a single UCHAR for the character encoded in UTF-8. Example: \x00C3\x0085, which corresponds to Å in UTF-8 becomes \u00C5 since U+0085 is a control character.
  • For NT/Turtle, @PREFIX and @BASE are rewritten to @prefix and @base
  • For NT/Turtle, literals true and false with any variation in case (e.g., True) are replaced
  • with the standard true and false.
  • For NT/Turtle, a lexical form followed by an <IRI> without space or with a number of ^
  • characters different from 2 is replaced with ^^<IRI>
  • For NT/Turtle, replace invalid unquoted plain literals with plain string literals. For this, the code assumes the invalid unquoted literal has no spaces (i.e., whitespace is a separator and never part of the invalid literal). Examples of this fix in action:
    • <an-iri> t:chromosome X becomes <an-iri> t:chromosome "X", <s> <p> 2e-3.4 becomes <s> <p> "2e-3.4" (expoent must be an integer) and <s> <p> falseful becomes <s> <p> "falseful"
    • Strip leading whitespace, %20, %09, %0A %0D and strip underlines at any position from IRI schemes. Affymetrix and Jamendo are affected
    • For Turtle/NT/TriG, replace NULL characters (U+0000) in string literals with (U+0020). Use case: only Affymetrix

Changelog

  • 1.0.1: Re-generated LMDB.index.v1-1 to fix wrong results on queries with unbound subject, owl:sameAs predicate and bound object.

Notes

Financed in part by CAPES (Coordenação de Aperfeiçoamento de Pessoal de Nível Superior) - Brasil - Finance Code 001 and by FAPESC (Fundação de Amparo à Pesquisa e Inovação do Estado de Santa Catarina).

Files

Files (26.5 GB)

Name Size
md5:5f82e34f11830540b69a09a5111f48d3
689.9 MB Download
md5:663610f3cb7d60c26aa7bac6f15462d0
241.9 MB Download
md5:272e9480fb123a31bce6c5d02f77280b
212 Bytes Download
md5:e912c7945bc3184a668a55604e1ad772
499.1 MB Download
md5:bdd6a72b7c0fc41dffbe806e00380adf
215 Bytes Download
md5:9f5d0e34cf5d696f1e813218f04a9c72
23.5 MB Download
md5:56caef7073c481f3aa583ea5f0a48743
13.2 MB Download
md5:acd89a16e17522524d5e1be9956cac57
202 Bytes Download
md5:80acf62e776a98b4878fea5d51ea1e20
21.5 MB Download
md5:cac0664ccc7d1ed72f21672c647e7b32
205 Bytes Download
md5:ba5c511520163c6719b6b22cb7744bbb
584.7 MB Download
md5:7b3f06ab21ae19852fca522f87d654f7
230.6 MB Download
md5:275e93bc09ed432c262d42ecb8b4069e
220 Bytes Download
md5:359b93a34a52a05279b184273d1fdc1a
555.6 MB Download
md5:0d39a2016c10d07045e93543448eb011
223 Bytes Download
md5:0287d951871deadd73ab261bca1425fa
16.9 MB Download
md5:9fe06eccab27d52a4b74ca79572abde9
2.2 MB Download
md5:6cea869af9cd0db3d01f254003b8bf12
208 Bytes Download
md5:25f4a203ba7ff752445031681f92cd9c
10.0 MB Download
md5:9ac4ef3cda02107ef9a605e144d30e0a
211 Bytes Download
md5:cd5a64824ce57c5a8985d52d9ec71797
1.0 GB Download
md5:876f08fd4e1c498bf45f5ff71879eb45
743.0 MB Download
md5:3969903a32784f0acfb2798ea02f2a7e
208 Bytes Download
md5:2fad406e6afaecb63c53187253f5b40f
610.6 MB Download
md5:dcb4bfbe578ecce7281a8b08919f81cd
211 Bytes Download
md5:d0a1479456735359594a75f885d624d1
15.3 MB Download
md5:728cfc88058d89e86549ccbc7ed3ddcf
5.0 MB Download
md5:bfd56fe0d2bdb7a683ff01c1609d6c98
206 Bytes Download
md5:14a021651806de4eaa2a5f95ed846f1c
8.0 MB Download
md5:c4a0fcd61c5633360a8838ce14e25e9b
209 Bytes Download
md5:aa16d8b2fc6465c90b16863940b22f41
11.9 MB Download
md5:606ed6d4896aa383f8bfa6c03c11ca8f
3.7 MB Download
md5:65fd7cfea4d0714dce694b47e8d4ea2c
200 Bytes Download
md5:ae5d1936ef229ce95c7bb49ad245a271
8.1 MB Download
md5:a9217f13af9cf7b6fa75393bef140cd3
203 Bytes Download
md5:453493f78a39908bc6a5995f44d7255b
311.5 MB Download
md5:33b8e077084056b0bffe58c48aa4f8d1
210.9 MB Download
md5:fc9f49b5756d5c4c4e42678cfbffbbb2
215 Bytes Download
md5:19b7d3fbd4ed8543fbe9f4f87046564a
225.9 MB Download
md5:f33f6626372a48a30ba99ed4a6f6041d
218 Bytes Download
md5:171cbfb243140f9ab6f8a884a667c21a
3.3 GB Download
md5:c867478a33c17e67b58be2e5f8b07844
2.4 GB Download
md5:d0acce3be0273fc3ffce82b35fb6d45f
215 Bytes Download
md5:55cb4f8d796abc978123d9e2488c0c7a
2.2 GB Download
md5:6ca2c96100a24794f8023ed25db62608
218 Bytes Download
md5:54cd9b80c5d0fbe8d4391787b1eba380
6.8 GB Download
md5:7fb4d44ea4ede6f143a1f8d018000fdb
2.8 GB Download
md5:ed5879a8a2c065fede789b7cb4350abc
215 Bytes Download
md5:051e0b0809292af53ca2ab11de63d4ed
2.8 GB Download
md5:21b5446d2aa482c262755f737df38460
218 Bytes Download
md5:5451cb9e70c0956d97a3de7ca0e89fbf
52.4 MB Download
md5:efd244d2bec921cce6cb506bb6b7894a
34.9 MB Download
md5:995be4c934b2ce1028ddf55c10963d2a
200 Bytes Download
md5:294c8711605646836f6cf43c52f27a2e
34.8 MB Download
md5:c0dfce2c85f9e5cd497f5250d4ae5ec1
203 Bytes Download
md5:430dd537f431c0abc41923a81d77621f
10.9 MB Download
md5:4144420cc043c145edc575d38c890332
1.3 MB Download
md5:66ff86006fce575a4a45be9f18c1abf1
198 Bytes Download
md5:c570f9b85758cecd01277698d66cbba7
4.1 MB Download
md5:f87675618169eafbbbe9a4f374bcf35d
201 Bytes Download
md5:a91948fa1be3961cd51135178c683e1f
2.7 MB Download
md5:954189417f68dbfbcc372d3e3734065d
407.0 kB Download
md5:5515a42808dea88bc684191c9f469b4a
206 Bytes Download
md5:92dcdc9e359461161630488dbbd8d54d
1.9 MB Download
md5:690ceb8857388420ac3bfc53994d276b
209 Bytes Download

Additional details

References