reduce the code size of old gstore
This commit is contained in:
parent
018e58b10f
commit
6bd7c44cd8
4
Makefile
4
Makefile
|
@ -9,7 +9,7 @@ objfile= $(objdir)Bstr.o $(objdir)Database.o $(objdir)KVstore.o $(objdir)Btree.o
|
|||
|
||||
inc=-I./tools/libantlr3c-3.4/ -I./tools/libantlr3c-3.4/include
|
||||
|
||||
all: gload gquery gserver gclient
|
||||
all: lib_antlr gload gquery gserver gclient
|
||||
|
||||
gload: $(objdir)gload.o $(objfile)
|
||||
g++ -o gload $(objdir)gload.o $(objfile) lib/libantlr.a
|
||||
|
@ -105,6 +105,8 @@ lib_antlr:
|
|||
cd tools; cd libantlr3c-3.4/; ./configure -enable-64bit; make;
|
||||
rm -rf lib/libantlr.a
|
||||
ar -crv lib/libantlr.a tools/libantlr3c-3.4/*.o
|
||||
rm -rf Parser/Sparql*
|
||||
cd tools; tar -xzvf sparql.tar.gz; mv Sparql* ../Parser/;
|
||||
|
||||
clean:
|
||||
rm -rf gload gquery gserver gclient $(objdir)/*.o
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
select ?x1 where
|
||||
{
|
||||
?x1 y:hasSuccessor <Under_the_Influence_(Overkill_album)>.
|
||||
}
|
|
@ -1,4 +0,0 @@
|
|||
select ?x1 where
|
||||
{
|
||||
?x1 rdf:type <wikicategory_2003_albums>.
|
||||
}
|
99550
example/LUBM_10
99550
example/LUBM_10
File diff suppressed because it is too large
Load Diff
11
example/a1
11
example/a1
|
@ -1,11 +0,0 @@
|
|||
select ?x1 ?x2 ?x3 ?x4 where
|
||||
{
|
||||
?x1 y:hasGivenName ?x5.
|
||||
?x1 y:hasFamilyName ?x6.
|
||||
?x1 rdf:type <wordnet_scientist_110560637>.
|
||||
?x1 y:bornIn ?x2.
|
||||
?x1 y:hasAcademicAdvisor ?x4.
|
||||
?x2 y:locatedIn <Switzerland>.
|
||||
?x3 y:locatedIn <Germany>.
|
||||
?x4 y:bornIn ?x3.
|
||||
}
|
13
example/a2
13
example/a2
|
@ -1,13 +0,0 @@
|
|||
select ?x1 ?x2 ?x3 ?x4 ?x5 where
|
||||
{
|
||||
?x1 rdf:type <wordnet_actor_109765278>.
|
||||
?x1 y:livesIn ?x2.
|
||||
?x1 y:actedIn ?x4.
|
||||
?x1 y:directed ?x5.
|
||||
?x2 y:locatedIn ?x3.
|
||||
?x3 y:locatedIn <New_York>.
|
||||
?x4 rdf:type <wordnet_movie_106613686>.
|
||||
?x4 y:hasProductionLanguage <English_language>.
|
||||
?x5 rdf:type <wordnet_movie_106613686>.
|
||||
?x5 y:hasProductionLanguage <English_language>.
|
||||
}
|
|
@ -1,8 +0,0 @@
|
|||
select ?x1 ?x2 ?x3 where
|
||||
{
|
||||
?x1 rdf:type <wordnet_athlete_109820263>.
|
||||
?x1 y:bornIn ?x2.
|
||||
?x1 rdf:type ?x5.
|
||||
?x2 y:locatedIn ?x3.
|
||||
?x3 y:locatedIn ?x4.
|
||||
}
|
11
example/b1
11
example/b1
|
@ -1,11 +0,0 @@
|
|||
select ?x1 ?x2 ?x3 ?x4 where
|
||||
{
|
||||
?x1 rdfs:label ?x5.
|
||||
?x1 y:livesIn ?x3.
|
||||
?x1 y:actedIn ?x7.
|
||||
?x2 y:actedIn ?x7.
|
||||
?x2 rdfs:label ?x6.
|
||||
?x2 y:livesIn ?x4.
|
||||
?x3 y:locatedIn <England>.
|
||||
?x4 y:locatedIn <England>.
|
||||
}
|
|
@ -1,8 +0,0 @@
|
|||
select ?x1 ?x2 where
|
||||
{
|
||||
?x1 rdfs:label ?x3.
|
||||
?x1 y:isMarriedTo ?x2.
|
||||
?x1 y:bornIn ?x5.
|
||||
?x2 y:bornIn ?x5.
|
||||
?x2 rdfs:label ?x4.
|
||||
}
|
11
example/b3
11
example/b3
|
@ -1,11 +0,0 @@
|
|||
select ?x1 ?x2 where
|
||||
{
|
||||
?x1 y:hasFamilyName ?x3.
|
||||
?x1 y:bornIn ?x6.
|
||||
?x1 rdf:type <wordnet_scientist_110560637>.
|
||||
?x1 y:hasWonPrize ?x5.
|
||||
?x2 y:hasWonPrize ?x5.
|
||||
?x2 rdf:type <wordnet_scientist_110560637>.
|
||||
?x2 y:bornIn ?x6.
|
||||
?x2 y:hasFamilyName ?x4.
|
||||
}
|
|
@ -1,5 +0,0 @@
|
|||
select ?x1 ?x2 where
|
||||
{
|
||||
?x1 y:discovered ?x2.
|
||||
?x2 rdfs:label ?x3.
|
||||
}
|
|
@ -1,4 +0,0 @@
|
|||
select ?x where
|
||||
{
|
||||
?x y:actedIn <Desperados_(TV_series)>.
|
||||
}
|
|
@ -1,5 +0,0 @@
|
|||
select ?x where
|
||||
{
|
||||
?x y:bornIn <New_York_City>.
|
||||
?x y:diedIn <Canada>.
|
||||
}
|
20
example/mu
20
example/mu
|
@ -1,20 +0,0 @@
|
|||
PREFIX dbo: <http://dbpedia.org/ontology/>
|
||||
PREFIX dbp: <http://dbpedia.org/property/>
|
||||
PREFIX res: <http://dbpedia.org/resource/>
|
||||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
||||
SELECT DISTINCT ?uri
|
||||
WHERE {
|
||||
?uri rdf:type dbo:Automobile .
|
||||
{ ?uri dbo:assembly res:Germany . }
|
||||
UNION
|
||||
{ ?uri dbp:assembly res:Germany . }
|
||||
UNION
|
||||
{ { ?uri dbo:manufacturer ?x . }
|
||||
UNION
|
||||
{ ?uri dbp:manufacturer ?x . }
|
||||
{ ?x dbo:locationCountry res:Germany . }
|
||||
UNION
|
||||
{ ?x dbo:location res:Germany . }
|
||||
}
|
||||
}
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
|
||||
|
||||
_:a foaf:name "Alice" .
|
||||
_:a foaf:homepage <http://work.example.org/alice/> .
|
||||
|
||||
_:b foaf:name "Bob" .
|
||||
_:b foaf:mbox <mailto:bob@work.example> .
|
|
@ -1,6 +0,0 @@
|
|||
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
|
||||
SELECT ?name ?mbox ?hpage
|
||||
WHERE { ?x foaf:name ?name .
|
||||
OPTIONAL { ?x foaf:mbox ?mbox } .
|
||||
OPTIONAL { ?x foaf:homepage ?hpage }
|
||||
}
|
|
@ -1,7 +0,0 @@
|
|||
select ?x1 ?x2 where
|
||||
{
|
||||
?x1 y:created ?x2.
|
||||
?x1 y:created <Louden_Up_Now>.
|
||||
?x2 y:hasSuccessor <Louden_Up_Now>.
|
||||
?x2 rdf:type <wordnet_album_106591815>.
|
||||
}
|
|
@ -1,6 +0,0 @@
|
|||
select ?person where
|
||||
{
|
||||
{?person <graduatedFrom> <PekingUniversity>.}
|
||||
UNION
|
||||
{?person <graduatedFrom> <TsinghuaUniversity>.}
|
||||
}
|
|
@ -1,10 +0,0 @@
|
|||
select ?field where
|
||||
{
|
||||
?person <name> "Peter".
|
||||
?person <majorIn> ?field.
|
||||
{?person <graduatedFrom> <PekingUniversity>.}
|
||||
UNION
|
||||
{?person <graduatedFrom> <TsinghuaUniversity>.}
|
||||
OPTIONAL {?person <Birthmonth> ?month}
|
||||
FILTER (?month != "June")
|
||||
}
|
|
@ -1,4 +0,0 @@
|
|||
select ?x1 ?x2where
|
||||
{
|
||||
?x1 <http://rdfs/label> ?x2.
|
||||
}
|
|
@ -1,12 +0,0 @@
|
|||
@prefix dc10: <http://purl.org/dc/elements/1.0/> .
|
||||
@prefix dc11: <http://purl.org/dc/elements/1.1/> .
|
||||
|
||||
_:a dc10:title "SPARQL Query Language Tutorial" .
|
||||
_:a dc10:creator "Alice" .
|
||||
|
||||
_:b dc11:title "SPARQL Protocol Tutorial" .
|
||||
_:b dc11:creator "Bob" .
|
||||
|
||||
_:c dc10:title "SPARQL" .
|
||||
_:c dc11:title "SPARQL (updated)" .
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
PREFIX dc10: <http://purl.org/dc/elements/1.0/>
|
||||
PREFIX dc11: <http://purl.org/dc/elements/1.1/>
|
||||
|
||||
SELECT ?title
|
||||
WHERE { { ?book dc10:title ?title } UNION { ?book dc11:title ?title } }
|
10000
example/yago_10000
10000
example/yago_10000
File diff suppressed because it is too large
Load Diff
10003
example/yago_10000_a
10003
example/yago_10000_a
File diff suppressed because it is too large
Load Diff
|
@ -1,4 +0,0 @@
|
|||
select ?x where
|
||||
{
|
||||
?x dbo:coach <Wes_Fesler>.
|
||||
}
|
Binary file not shown.
Loading…
Reference in New Issue