Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Quartz is Triple Pattern Fragment client that enables parallel SPARQL query processing over replicated Triple Pattern Fragments.
Although Linked Data datasets made available billions of triples, data availability is still an issue. While replicating datasets over different linked data providers improves data availability, balancing the load of query processing across replicas has not been considered yet in the context of Linked Data.
In the context of the Triple Pattern Fragment [1] (TPF) approach, we tackle the problem of query optimization under presence of replicated RDF data and propose a cost-based query optimizer named Quartz, which is able to generate plans that minimize execution time while maximize load balancing. Quartz is able to exploit meta-data about TPFs to produce parallelized query execution plans against replicated TPFs servers. Moreover, a cost model is utilized by the Quartz optimizer to estimate the computation capability of replicated TPF servers. Experimentations demonstrate that Quartz significantly improves not only execution time of SPARQL queries, but also load-balancing between replicated TPF servers.
Requirements: Node.js v6.x or higher
using npm
npm i --save quartz-tpf
using git
git clone htpps://github.com/Callidon/virtual-decomposer.git
cd virtual-decomposer/
npm i --production
in the browser
<script src="node_modules/quartz-tpf/quartz-tpf.bundle.js" type="text/javascript" />
We use one instance of the Waterloo SPARQL Diversity Test Suite (WatDiv) synthetic dataset[2,3] with 10^5 triples, encoded in the HDT[4] format. We generate 50,000 queries from 500 templates.
Next, we eliminate all duplicated queries and then pick 100 random queries to be executed against our dataset. Generated queries are STAR, PATH and SNOWFLAKE shaped queries, all using the DISTINCT modifier.
Queries used during the experiments are available here.
We compare the average execution time with the reference TPF client (TPF), TPF with PeNeLoop operator[5] (TPF+PeN), TPF with query optimization using virtual triple patterns (TPF+VTP) and the QUaRTz client itself.
We also run experiments for the ten most expensive queries to evaluate, using 1, 2, 3 and 4 equivalents servers (PDF version)
We compare the number of HTTP calls done to each server per query for TPF+PeN, TPF+VTP and QUaRTz, with both configurations (equivalent and non equivalent servers). We use two servers in each configuration.
We compare the answer completeness with TPF, TPF+PeN, TPF+VTP and QUaRTz, with both configurations (equivalent and non equivalent servers)
Results from all the Wilcoxon ranking tests[6] performed are available here.
Quartz can be used through command line if installed globally with npm i -g quartz-tpf
:
Usage: quartz <servers...> [options]
execute a SPARQL query against several endpoints
Options:
-h, --help output usage information
-p, --peneloop use peneloop to process joins
-q, --query <query> evaluates the given SPARQL query
-f, --file <file> evaluates the SPARQL query in the given file
-l, --limit <limit> limit the number of triples to localize per BGP in the query (default to 1)
-t, --type <mime-type> determines the MIME type of the output (e.g., application/json)
-m, --measure <output> measure the query execution time (in seconds) & append it to a file
-s, --silent do not perform any measurement (silent mode)
Quartz can also be used as a library
'use strict';
const QuartzClient = require('quartz-tpf');
const query = `
PREFIX dbo: <http://dbpedia.org/ontology/>
SELECT ?actor ?city
WHERE {
?actor a dbo:Actor.
?actor dbo:birthPlace ?city.
?city dbo:country dbpedia:United_States.
} LIMIT 3000
`
// all the TPF servers must replicate the same version of the same dataset !
const servers = [
'http://exampleA.fragments.org/dbpedia',
'http://exampleB.fragments.org/dbpedia'
]
// provide any TPF servers to calibrate the cost model
const client = new QuartzClient(servers[0]);
client.execute(query, servers)
.then(mappings => console.log(mappings))
.catch(error => console.error(error));
See more details by generating the documentation.
Generate the documentation by running npm run doc
.
FAQs
Quartz: Parallel SPARQL query processing over replicated Triple Pattern Fragments
We found that quartz-tpf demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.