Difference between revisions of "Singleton Property Reasoning"

From Knoesis wiki
Jump to: navigation, search
m
Line 3: Line 3:
 
The packages are available for download at sourceforge.net
 
The packages are available for download at sourceforge.net
  
[http://sourceforge.net/projects/graphke/files/lubmsp_1.0.0.jar/download LUBM-SP]
+
LUBM-SP: [http://sourceforge.net/projects/graphke/files/lubmsp_1.0.0.jar/download http://sourceforge.net/projects/graphke/files/lubmsp_1.0.0.jar/download]
  
[http://sourceforge.net/projects/graphke/files/lubmsp_query_eval_1.0.0.jar/download Jena query evaluation]
+
LUBM-SP ontology: [http://sourceforge.net/projects/graphke/files/lubmsp_onto.nt/download http://sourceforge.net/projects/graphke/files/lubmsp_onto.nt/download]
 +
 
 +
SPARQL queries [http://sourceforge.net/projects/graphke/files/queries.tar.gz/download http://sourceforge.net/projects/graphke/files/queries.tar.gz/download]
 +
 
 +
Jena Query evaluation [http://sourceforge.net/projects/graphke/files/lubmsp_query_eval_1.0.0.jar/download http://sourceforge.net/projects/graphke/files/lubmsp_query_eval_1.0.0.jar/download]
  
 
= How to use =
 
= How to use =
Line 17: Line 21:
 
2. cd lubmsp
 
2. cd lubmsp
 
3. Download the lubmsp_1.0.0.jar into this folder
 
3. Download the lubmsp_1.0.0.jar into this folder
4. Run the code, n is the number of university, n = 50, 500, 1000
+
4. Run the code, the number of university may be 50, 500, or 1000
java -jar lubmsp_1.0.0.jar -univ n -index 0 -onto http://knoesis.org/lubmsp
+
java -jar lubmsp_1.0.0.jar -univ 500 -index 0 -onto http://knoesis.org/lubmsp
 +
5. Three data files generated
 +
LUBM_500.nt: the original LUBM in the form of ntriples
 +
LUBM_500_sp.nt: the LUBM-SP in the form of ntriples
 +
LUBM_500.rdf: the original LUBM in the form of RDF/XML
 +
 
 
</pre>
 
</pre>
  
== Query evaluation ==
+
== Query evaluation in Jena ==
 +
 
 +
<pre>
 +
1. cd lubmsp
 +
1. Download the queries.tar.gz
 +
2. tar -xzvf queries.tar.gz
 +
3.
 +
</pre>

Revision as of 10:32, 4 May 2015

Downloads

The packages are available for download at sourceforge.net

LUBM-SP: http://sourceforge.net/projects/graphke/files/lubmsp_1.0.0.jar/download

LUBM-SP ontology: http://sourceforge.net/projects/graphke/files/lubmsp_onto.nt/download

SPARQL queries http://sourceforge.net/projects/graphke/files/queries.tar.gz/download

Jena Query evaluation http://sourceforge.net/projects/graphke/files/lubmsp_query_eval_1.0.0.jar/download

How to use

Here we explain the step-by-step to generate the LUBM-SP datasets

Generate LUBM-SP

1. mkdir lubmsp
2. cd lubmsp
3. Download the lubmsp_1.0.0.jar into this folder
4. Run the code, the number of university may be 50, 500, or 1000
java -jar lubmsp_1.0.0.jar -univ 500 -index 0 -onto http://knoesis.org/lubmsp
5. Three data files generated
LUBM_500.nt: the original LUBM in the form of ntriples
LUBM_500_sp.nt: the LUBM-SP in the form of ntriples
LUBM_500.rdf: the original LUBM in the form of RDF/XML

Query evaluation in Jena

1. cd lubmsp
1. Download the queries.tar.gz 
2. tar -xzvf queries.tar.gz
3.