-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'LDBC/master'
- Loading branch information
Showing
42 changed files
with
585 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/bash | ||
|
||
basedir=${0%/*} | ||
libdir=${basedir}/lib | ||
SEP=':' | ||
|
||
if [ -z "$CLASSPATH" ] | ||
then | ||
CLASSPATH=${basedir}/bin # for development version only | ||
else | ||
CLASSPATH=$CLASSPATH$SEP${basedir}/bin # for development version only | ||
fi | ||
|
||
if [ "$(uname)" = "Cygwin" ]; then SEP=';'; fi | ||
for jar in $libdir/*.jar | ||
do | ||
if [ ! -e "$jar" ]; then continue; fi | ||
CLASSPATH="$CLASSPATH$SEP$jar" | ||
done | ||
|
||
export CLASSPATH | ||
|
||
./sibdriver -t 300000 -idir td_data -uc sib/int_sql -mt 1 -runs 1 -sql jdbc:virtuoso://localhost:1205/UID=dba/PWD=dba -dbdriver virtuoso.jdbc4.Driver -printres -pq -defaultparams |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1 | ||
2 3 4 5 6 7 8 9 10 11 12 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
select top 10 p_personid, p_lastname, p_birthday, p_creationdate, p_gender, p_browserused, | ||
bit_shift(bit_and(p_locationip, 4278190080), -24) || '.' || | ||
bit_shift(bit_and(p_locationip, 16711680), -16) || '.' || | ||
bit_shift(bit_and(p_locationip, 65280), -8) || '.' || | ||
bit_and(p_locationip, 255) as ip, | ||
group_concat_distinct (pe_email, ', ') as emails, | ||
group_concat_distinct (plang_language, ', ') as languages, | ||
p1.pl_name, | ||
group_concat_distinct (o2.o_name || ' ' || pu_classyear || ' ' || p2.pl_name, ', ') as university, | ||
group_concat_distinct (o3.o_name || ' ' || pc_workfrom || ' ' || p3.pl_name, ', ') as company | ||
from person, place p1, person_email, person_language, | ||
person_university, organisation o2, place p2, | ||
person_company, organisation o3, place p3 | ||
where | ||
p_firstname = '@Name@' and | ||
p_placeid = p1.pl_placeid and | ||
p_personid = pe_personid and | ||
p_personid = plang_personid and | ||
p_personid = pu_personid and | ||
pu_organisationid = o2.o_organisationid and | ||
o2.o_placeid = p2.pl_placeid and | ||
p_personid = pc_personid and | ||
pc_organisationid = o3.o_organisationid and | ||
o3.o_placeid = p3.pl_placeid | ||
order by p_lastname, p_personid |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
select top 10 p_firstname, p_lastname, | ||
( select count(distinct ps_postid) | ||
from post, post_tag pt1 | ||
where | ||
ps_creatorid = p_personid and ps_postid = pst_postid and | ||
exists (select * from person_tag where pt_personid = @Person@ and pt_tagid = pt1.pst_tagid) | ||
) - | ||
( select count(distinct ps_postid) | ||
from post, post_tag pt1 | ||
where | ||
ps_creatorid = p_personid and ps_postid = pst_postid and | ||
not exists (select * from person_tag where pt_personid = @Person@ and pt_tagid = pt1.pst_tagid) | ||
) as score, | ||
p_personid, p_gender, pl_name | ||
from person, place, | ||
( select distinct k2.k_person2id | ||
from knows k1, knows k2 | ||
where | ||
k1.k_person1id = @Person@ and k1.k_person2id = k2.k_person1id and k2.k_person2id <> @Person@ and | ||
not exists (select * from knows where k_person1id = @Person@ and k_person2id = k2.k_person2id) | ||
) f | ||
where | ||
p_placeid = pl_placeid and | ||
p_personid = f.k_person2id and | ||
case month(p_birthday) when @HS0@ then (case when dayofmonth(p_birthday) > 21 then 1 else 0 end) | ||
when @HS1@ then (case when dayofmonth(p_birthday) < 22 then 1 else 0 end) | ||
else 0 | ||
end | ||
order by 3 desc, p_personid |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
QueryType=Select | ||
|
||
PersonURIString=fof | ||
|
||
Person=PersonID | ||
HS0=HoroscopeSign_0 | ||
HS1=HoroscopeSign_1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
select top 10 p_firstname, p_lastname, pc_workfrom, o_name, p_personid | ||
from person, person_company, organisation, place, | ||
( select k_person2id | ||
from knows | ||
where | ||
k_person1id = @Person@ | ||
union | ||
select k2.k_person2id | ||
from knows k1, knows k2 | ||
where | ||
k1.k_person1id = @Person@ and k1.k_person2id = k2.k_person1id and k2.k_person2id <> @Person@ | ||
) f | ||
where | ||
p_personid = f.k_person2id and | ||
p_personid = pc_personid and | ||
pc_organisationid = o_organisationid and | ||
pc_workfrom < @Date0@ and | ||
o_placeid = pl_placeid and | ||
pl_url = '@Country@' | ||
order by pc_workfrom, p_personid, o_name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
QueryType=Select | ||
|
||
PersonURIString=fr | ||
|
||
Person=PersonID | ||
Country=CountrySQLURI | ||
Date0=WorkFromDate_0_100 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
select top 20 p_personid, p_firstname, p_lastname, t_name, count(*) | ||
from person, comment, knows, post, post_tag, tag_tagclass, tagclass, tag | ||
where | ||
k_person1id = @Person@ and | ||
k_person2id = p_personid and | ||
p_personid = c_creatorid and | ||
c_replyofpost = ps_postid and | ||
ps_postid = pst_postid and | ||
pst_tagid = t_tagid and | ||
pst_tagid = ttc_tagid and | ||
ttc_tagclassid = tc_tagclassid and | ||
tc_url = '@TagType@' | ||
group by p_personid, p_firstname, p_lastname, t_name | ||
order by 5 desc, p_personid, t_name | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
QueryType=Select | ||
|
||
PersonURIString=exp | ||
|
||
Person=PersonID | ||
TagType=TagTypeSQLURI |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
QueryType=Select | ||
|
||
Name=PersonName |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
select top 20 p_personid, p_firstname, p_lastname, ps_postid, ps_content || ps_imagefile, ps_creationdate | ||
from person, post, knows | ||
where | ||
p_personid = ps_creatorid and | ||
ps_creationdate <= stringdate('@Date0@') and | ||
k_person1id = @Person@ and | ||
k_person2id = p_personid | ||
order by ps_creationdate desc, ps_postid |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
QueryType=Select | ||
|
||
Person=PersonID | ||
Date0=CreationPostDate_33_66 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
select top 20 p_personid, p_firstname, p_lastname, ct1, ct2, total | ||
from | ||
( select k_person2id | ||
from knows | ||
where | ||
k_person1id = @Person@ | ||
union | ||
select k2.k_person2id | ||
from knows k1, knows k2 | ||
where | ||
k1.k_person1id = @Person@ and k1.k_person2id = k2.k_person1id and k2.k_person2id <> @Person@ | ||
) f, person, place p1, place p2, | ||
( | ||
select chn.ps_c_creatorid, ct1, ct2, ct1 + ct2 as total | ||
from | ||
( | ||
select ps_c_creatorid, sum(ct1) as ct1 | ||
from | ||
( | ||
select ps_creatorid as ps_c_creatorid, count(*) as ct1 from post, place | ||
where | ||
ps_locationid = pl_placeid and pl_name = '@Country1@' and | ||
ps_creationdate between stringdate('2011-03-02') and dateadd ('day', 366, stringdate('2011-03-02')) | ||
group by ps_c_creatorid | ||
union | ||
select c_creatorid as ps_c_creatorid, count(*) as ct1 from comment, place | ||
where | ||
c_locationid = pl_placeid and pl_name = '@Country1@' and | ||
c_creationdate between stringdate('2011-03-02') and dateadd ('day', 366, stringdate('2011-03-02')) | ||
group by ps_c_creatorid | ||
) tmp | ||
group by ps_c_creatorid | ||
) chn, | ||
( | ||
select ps_c_creatorid, sum(ct1) as ct2 | ||
from | ||
( | ||
select ps_creatorid as ps_c_creatorid, count(*) as ct1 from post, place | ||
where | ||
ps_locationid = pl_placeid and pl_name = '@Country2@' and | ||
ps_creationdate between stringdate('2011-03-02') and dateadd ('day', 366, stringdate('2011-03-02')) | ||
group by ps_c_creatorid | ||
union | ||
select c_creatorid as ps_c_creatorid, count(*) as ct1 from comment, place | ||
where | ||
c_locationid = pl_placeid and pl_name = '@Country2@' and | ||
c_creationdate between stringdate('2011-03-02') and dateadd ('day', 366, stringdate('2011-03-02')) | ||
group by ps_c_creatorid | ||
) tmp | ||
group by ps_c_creatorid | ||
) ind | ||
where CHN.ps_c_creatorid = IND.ps_c_creatorid | ||
) cpc | ||
where | ||
f.k_person2id = p_personid and p_placeid = p1.pl_placeid and | ||
p1.pl_containerplaceid = p2.pl_placeid and p2.pl_name <> '@Country1@' and p2.pl_name <> '@Country2@' and | ||
f.k_person2id = cpc.ps_c_creatorid | ||
order by 6 desc, p_personid | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
QueryType=Select | ||
|
||
PersonURIString=fr | ||
|
||
Person=PersonID | ||
Date0=CreationPostDate_0_66 | ||
Duration=TotalDaysOfCreationPost_33_33 | ||
Country1=CountryPairSQL_1 | ||
Country2=CountryPairSQL_2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
select top 10 t_name, count(*) | ||
from tag, post, post_tag, knows | ||
where | ||
ps_postid = pst_postid and | ||
pst_tagid = t_tagid and | ||
ps_creatorid = k_person2id and | ||
k_person1id = @Person@ and | ||
ps_creationdate between stringdate('@Date0@') and dateadd ('day', @Duration@, stringdate('@Date0@')) and | ||
not exists ( | ||
select * from post, post_tag, knows | ||
where | ||
k_person1id = @Person@ and | ||
k_person2id = ps_creatorid and | ||
pst_postid = ps_postid and | ||
pst_tagid = t_tagid and | ||
ps_creationdate < '@Date0@' | ||
) | ||
group by t_name | ||
order by 2 desc, t_name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
QueryType=Select | ||
|
||
Person=PersonID | ||
Date0=CreationPostDate_0_95 | ||
Duration=TotalDaysOfCreationPost_2_4 |
Oops, something went wrong.