Skip to content

Commit 177ac71

Browse files
committed
SIB queries
1 parent 221368e commit 177ac71

24 files changed

+79
-40
lines changed

ldbc_socialnet_qgen/lib/bibm.jar

4.33 KB
Binary file not shown.

ldbc_socialnet_qgen/run.log

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Unknown parameter: --help
Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,29 @@
1-
select ?first ?last
2-
from <sib>
1+
select ?first ?last ?bday ?since ?gen ?browser ?locationIP
2+
((select group_concat (?email, ", ")
3+
where {
4+
%Person% snvoc:email ?email
5+
}
6+
)) as ?email
7+
((select group_concat (?lng, ", ")
8+
where {
9+
%Person% snvoc:speaks ?lng
10+
}
11+
)) as ?lng
12+
((select group_concat (?fr, ", ")
13+
where {
14+
%Person% snvoc:knows ?fr
15+
}
16+
)) as ?friends
17+
?based
318
{
19+
%Person% a snvoc:Person .
420
%Person% snvoc:firstName ?first .
521
%Person% snvoc:lastName ?last .
22+
%Person% snvoc:isLocatedIn ?basedURI .
23+
?basedURI foaf:name ?based .
24+
%Person% snvoc:birthday ?bday .
25+
%Person% snvoc:creationDate ?since .
26+
%Person% snvoc:gender ?gen .
27+
%Person% snvoc:browserUsed ?browser .
28+
%Person% snvoc:locationIP ?locationIP .
629
}

ldbc_socialnet_qgen/sib/int/query1.txt

100644100755
Lines changed: 29 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,46 @@
1-
select ?person ?last ?based ?bday ?since ?gen
2-
((select group_concat (?lng, ",")
1+
select ?person ?last ?bday ?since ?gen ?browser ?locationIP #Q1
2+
((select group_concat (?email, ", ")
3+
where {
4+
?person snvoc:email ?email
5+
}
6+
group by ?person)) as ?email
7+
((select group_concat (?lng, ", ")
38
where {
49
?person snvoc:speaks ?lng
510
}
6-
group by ?person))
7-
((select group_concat ( bif:concat (?o_name, ?o_country), ",")
11+
group by ?person)) as ?lng
12+
?based
13+
((select group_concat ( bif:concat (?o_name, " ", ?year, " ", ?o_country), ", ")
14+
where {
15+
?person snvoc:studyAt ?w .
16+
?w snvoc:classYear ?year .
17+
?w snvoc:hasOrganisation ?org .
18+
?org snvoc:isLocatedIn ?o_countryURI .
19+
?o_countryURI foaf:name ?o_country .
20+
?org foaf:name ?o_name
21+
}
22+
group by ?person)) as ?studyAt
23+
((select group_concat ( bif:concat (?o_name, " ", ?year, " ", ?o_country), ", ")
824
where {
925
?person snvoc:workAt ?w .
26+
?w snvoc:workFrom ?year .
1027
?w snvoc:hasOrganisation ?org .
11-
?org snvoc:isLocatedIn ?o_country .
28+
?org snvoc:isLocatedIn ?o_countryURI .
29+
?o_countryURI foaf:name ?o_country .
1230
?org foaf:name ?o_name
1331
}
14-
group by ?person))
32+
group by ?person)) as ?workAt
1533
{
1634
?person a snvoc:Person .
1735
?person snvoc:firstName "%Name%" .
18-
?person snvoc:isLocatedIn ?based .
36+
?person snvoc:isLocatedIn ?basedURI .
37+
?basedURI foaf:name ?based .
1938
?person snvoc:birthday ?bday .
2039
?person snvoc:creationDate ?since .
2140
?person snvoc:gender ?gen .
2241
?person snvoc:lastName ?last .
42+
?person snvoc:locationIP ?locationIP .
43+
?person snvoc:browserUsed ?browser .
2344
}
24-
order by ?last
45+
order by ?last ?person
2546
limit 10

ldbc_socialnet_qgen/sib/int/query10.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
select %OtherDetails% ?first ?last
2-
((( select count (*)
1+
select ?first ?last #Q10
2+
((( select count (distinct ?post)
33
where {
44
?post snvoc:hasCreator ?fof .
55
?post snvoc:hasTag ?tag .
66
%Person% snvoc:hasInterest ?tag
77
}
88
))
99
-
10-
(( select count (*)
10+
(( select count (distinct ?post)
1111
where {
1212
?post snvoc:hasCreator ?fof .
1313
?post snvoc:hasTag ?tag .

ldbc_socialnet_qgen/sib/int/query10desc.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,3 @@ PersonURIString=fof
55
Person=PersonURI
66
HS0=HoroscopeSign_0
77
HS1=HoroscopeSign_1
8-
OtherDetails=ProfileViewQuery_?fof_profile
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
select %OtherDetails% ?first ?last ?startdate ?org ?fr
1+
select ?first ?last ?startdate ?orgname ?fr #Q11
22
where {
33
?w snvoc:hasOrganisation ?org .
4+
?org foaf:name ?orgname .
45
?org snvoc:isLocatedIn %Country% .
56
?fr snvoc:workAt ?w .
67
?w snvoc:workFrom ?startdate .
7-
filter (?startdate < "%Date0%"^^xsd:string) .
8+
filter (?startdate < %Date0%) .
89
{ select distinct ?fr
910
from <sib>
1011
where {
@@ -14,7 +15,7 @@ where {
1415
?fr snvoc:firstName ?first .
1516
?fr snvoc:lastName ?last .
1617
}
17-
order by ?startdate ?fr
18+
order by ?startdate ?fr ?orgname
1819
limit 10
1920

2021

ldbc_socialnet_qgen/sib/int/query11desc.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,3 @@ PersonURIString=fr
55
Person=PersonURI
66
Country=CountryURI
77
Date0=WorkFromDate_0_100
8-
OtherDetails=ProfileViewQuery_?fr_profile

ldbc_socialnet_qgen/sib/int/query12.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
select ?exp %OtherDetails% ?first ?last ?tag count (*)
1+
select ?exp ?first ?last ?tag count (*) #Q12
22
where {
33
%Person% snvoc:knows ?exp .
44
?exp snvoc:firstName ?first . ?exp snvoc:lastName ?last .
@@ -9,5 +9,5 @@ where {
99
?tag a %TagType% .
1010
}
1111
group by ?exp ?first ?last ?tag
12-
order by desc(5) ?exp
12+
order by desc(5) ?exp ?tag
1313
limit 20

ldbc_socialnet_qgen/sib/int/query12desc.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,3 @@ PersonURIString=exp
44

55
Person=PersonURI
66
TagType=TagTypeURI
7-
OtherDetails=ProfileViewQuery_?exp_profile

0 commit comments

Comments
 (0)