Skip to content

Commit 1697a5b

Browse files
committed
Initial skeleton
Signed-off-by: Greg Haskins <greg@manetu.com>
1 parent b9f460e commit 1697a5b

File tree

19 files changed

+829
-2
lines changed

19 files changed

+829
-2
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2024 Manetu
3+
Copyright (c) Manetu
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

Makefile

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Copyright © Manetu, Inc. All rights reserved
2+
3+
NAME=manetu-sparql-loadtest
4+
BINDIR ?= /usr/local/bin
5+
OUTPUT=target/$(NAME)
6+
SHELL=/bin/bash -o pipefail
7+
8+
SRCS += $(shell find src -type f)
9+
10+
COVERAGE_THRESHOLD = 98
11+
COVERAGE_EXCLUSION += "manetu.sparql-loadtest.main"
12+
13+
all: scan bin
14+
15+
bin: $(OUTPUT)
16+
17+
scan:
18+
lein cljfmt check
19+
lein bikeshed -m 120 -n false
20+
#lein kibit
21+
lein eastwood
22+
23+
.PHONY: test
24+
test:
25+
lein cloverage --fail-threshold $(COVERAGE_THRESHOLD) $(patsubst %,-e %, $(COVERAGE_EXCLUSION)) | perl -pe 's/\e\[?.*?[\@-~]//g'
26+
27+
$(OUTPUT): $(SRCS) Makefile project.clj
28+
@lein bin
29+
30+
$(PREFIX)$(BINDIR):
31+
mkdir -p $@
32+
33+
install: $(OUTPUT) $(PREFIX)$(BINDIR)
34+
cp $(OUTPUT) $(PREFIX)$(BINDIR)
35+
36+
clean:
37+
@echo "Cleaning up.."
38+
@lein clean
39+
-@rm -rf target
40+
-@rm -f *~
41+

README.md

Lines changed: 102 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,103 @@
11
# sparql-loadtest
2-
A utility to measure SPARQL query performance on the Manetu Platform
2+
3+
The sparql-loadtest is a command-line tool to measure SPARQL query performance on the Manetu platform. The basic premise is that you may specify an arbitrary query with optional initial-bindings, and the tool will run a fixed number of iterations with the specified concurrency. After the test, the tool will compute and report various metrics such as the min/ave/max latency and the throughput rate.
4+
5+
This utility helps measure your cluster's overall query performance and helps optimize your SPARQL query.
6+
7+
## Installing
8+
9+
### Prerequisites
10+
11+
- JDK (tested with JDK22)
12+
- make
13+
14+
## Building
15+
16+
### Prerequisites
17+
18+
In addition to the requirements for installation, you will also need:
19+
20+
- Leiningen
21+
22+
```
23+
$ make
24+
```
25+
## Usage
26+
27+
```shell
28+
$ java -jar ./target/uberjar/app.jar -h
29+
Usage: manetu-sparql-loadtest [options]
30+
31+
Measures the performance metrics of concurrent SPARQL queries to the Manetu platform
32+
33+
Options:
34+
-h, --help
35+
-v, --version Print the version and exit
36+
-u, --url URL The connection URL
37+
--insecure Disable TLS host checking
38+
--[no-]progress true Enable/disable progress output (default: enabled)
39+
-l, --log-level LEVEL :info Select the logging verbosity level from: [trace, debug, info, error]
40+
-c, --concurrency NUM 64 The number of parallel jobs to run
41+
-d, --driver DRIVER :gql Select the driver from: [null, gql]
42+
-q, --query PATH The path to a file containing a SPARQL query to use in test
43+
-b, --bindings FILE (Optional) The path to a CSV file to cycle through as input bindings to each SPARQL query
44+
-n, --nr COUNT 10000 The number of queries to execute
45+
```
46+
47+
### Connection details
48+
49+
In addition to --url and optionally --insecure, you must set the environment variable MANETU_TOKEN to a personal access token issued from your Manetu cluster.
50+
51+
### Test parameters
52+
53+
The parameters of the test include the level of concurrency (--concurrency), the number of iterations (--nr), the query (--query) specified as a path to a file containing a SPARQL expression, and optionally a set of initial bindings (--bindings) defined as a path to a CSV file.
54+
55+
#### SPARQL expression
56+
57+
The SPARQL expression must be legal SPARQL grammar. For example:
58+
59+
```sparql
60+
PREFIX manetu: <http://manetu.com/manetu/>
61+
PREFIX mmeta: <http://manetu.io/rdf/metadata/0.1/>
62+
63+
SELECT ?label
64+
65+
WHERE {
66+
?s manetu:email ?email ;
67+
mmeta:vaultLabel ?label .
68+
}
69+
```
70+
The expression may optionally contain input bindings that will be satisfied by the CSV input file specified by --bindings. The utility will submit the column header of the CSV file as a binding verbatim, with the requisite "?" prefix. For example, for the following CSV:
71+
72+
```csv
73+
id,name,email
74+
1,alice,alice@example.com
75+
2,bob,bob@example.com
76+
```
77+
This would generate bindings such as:
78+
79+
```json
80+
{"?id": "1", "?name": "alice", "?email": "alice@example.com"}
81+
```
82+
The utility will cycle through the rows for cases where the number of iterations (--nr) exceeds the rows in the --bindings. For example, if the initial bindings contains 4 rows (numbered 1-4) and the test is executed with --nr 10, the utility will generate queries with the rows cycled e.g. [1 2 3 4 1 2 3 4 1 2].
83+
84+
### Example
85+
86+
For this example, we will use a query to search the graph by email to return a vault label. We will use several files from this repository for our [query](./examples/by-email/label-by-email.sparql) and [bindings](./examples/by-email/bindings.csv). Running this example assumes you have onboarded some [mock-data](./examples/by-email/data-loader.csv) using the Manetu [data-loader](https://github.com/manetu/data-loader) utility.
87+
88+
```shell
89+
$ java -jar ./target/uberjar/app.jar -u https://manetu.example.com --insecure -q ./examples/by-email/label-by-email.sparql --bindings ./examples/by-email/bindings.csv -n10000 -c64
90+
```
91+
If successful, the test should display something similar to the following:
92+
93+
```shell
94+
2024-10-17T20:21:33.172Z INFO processing 10000 requests with concurrency 64
95+
2024-10-17T20:21:33.175Z INFO Loading bindings from: ./examples/by-email/bindings.csv
96+
10000/10000 100% [==================================================] ETA: 00:00
97+
|-----------+----------+------+-------+--------+--------+--------+----------------+--------|
98+
| Successes | Failures | Min | Q1 | Median | Q3 | Max | Total Duration | Rate |
99+
|-----------+----------+------+-------+--------+--------+--------+----------------+--------|
100+
| 10000.0 | 0.0 | 27.1 | 87.05 | 113.04 | 132.75 | 292.57 | 20517.48 | 487.39 |
101+
|-----------+----------+------+-------+--------+--------+--------+----------------+--------|
102+
```
103+

dev-resources/user.clj

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
;; Copyright © Manetu, Inc. All rights reserved
2+
3+
(ns user
4+
(:require [clojure.tools.namespace.repl :refer [refresh]]
5+
[manetu.sparql-loadtest.main :as main]))
6+
7+
(defn run
8+
[params]
9+
(apply main/-app (clojure.string/split params #" ")))

examples/by-email/bindings.csv

Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
email
2+
haireton0@cam.ac.uk
3+
braithmill1@reverbnation.com
4+
raggas2@tinyurl.com
5+
hfreda3@dagondesign.com
6+
otomich4@digg.com
7+
cneame5@sakura.ne.jp
8+
ltooley6@chicagotribune.com
9+
bmoryson7@last.fm
10+
cneylan8@istockphoto.com
11+
jkidstoun9@w3.org
12+
gchaffena@deviantart.com
13+
pcollcottb@timesonline.co.uk
14+
meagellc@slideshare.net
15+
dtalmand@gmpg.org
16+
bdownse@yahoo.co.jp
17+
mmcnallyf@xinhuanet.com
18+
jcradduckg@wordpress.com
19+
hecklyh@mapquest.com
20+
sbartlomiejczyki@google.com
21+
lrossonij@ucla.edu
22+
cmaccaugheyk@live.com
23+
mlambartonl@hc360.com
24+
dsambedgem@economist.com
25+
ahamiltonn@apple.com
26+
zchancelloro@independent.co.uk
27+
vcowplandp@omniture.com
28+
eramsdaleq@de.vu
29+
tratchfordr@devhub.com
30+
mclemencons@twitter.com
31+
svollert@cbsnews.com
32+
rsnowdonu@guardian.co.uk
33+
tgianolov@bloomberg.com
34+
mschwandermannw@weebly.com
35+
jcicchettox@deliciousdays.com
36+
stomensony@accuweather.com
37+
kgreastyz@unesco.org
38+
ngostyke10@jugem.jp
39+
yattle11@nymag.com
40+
jmanicom12@apple.com
41+
bfantonetti13@businessinsider.com
42+
rperree14@salon.com
43+
ncrathern15@chicagotribune.com
44+
tbremen16@printfriendly.com
45+
agiacomini17@tmall.com
46+
lspurgeon18@arizona.edu
47+
fsterry19@google.com.br
48+
tduffill1a@soundcloud.com
49+
rgreenacre1b@prlog.org
50+
rscott1c@un.org
51+
cbanbury1d@cnet.com
52+
rdeppen1e@tinyurl.com
53+
wbraffington1f@sfgate.com
54+
cskittle1g@digg.com
55+
vgarside1h@cpanel.net
56+
mwhittek1i@biblegateway.com
57+
igreeve1j@studiopress.com
58+
bcaudray1k@amazon.co.uk
59+
sgooder1l@phpbb.com
60+
lleverton1m@google.com
61+
wbutterfint1n@walmart.com
62+
nmccleary1o@un.org
63+
ltrainor1p@indiatimes.com
64+
rpolini1q@psu.edu
65+
lcarnock1r@shinystat.com
66+
dyakubov1s@skype.com
67+
mdrust1t@economist.com
68+
gespie1u@aol.com
69+
jgarbett1v@feedburner.com
70+
cswalowe1w@craigslist.org
71+
rjouannisson1x@sun.com
72+
jwalenta1y@flickr.com
73+
athame1z@yandex.ru
74+
jpoynser20@whitehouse.gov
75+
dgeorgot21@de.vu
76+
cserrell22@ox.ac.uk
77+
mgosnall23@histats.com
78+
mcogar24@fotki.com
79+
mmelhuish25@newsvine.com
80+
mliddon26@gravatar.com
81+
dvankov27@myspace.com
82+
ldurward28@nifty.com
83+
lricciardi29@shareasale.com
84+
lnobles2a@wiley.com
85+
lfisbey2b@angelfire.com
86+
sgeydon2c@patch.com
87+
ecargenven2d@wikia.com
88+
whaigh2e@globo.com
89+
lbrack2f@instagram.com
90+
mhustler2g@cnet.com
91+
muden2h@businessinsider.com
92+
poughtright2i@princeton.edu
93+
ecreaser2j@ftc.gov
94+
waudus2k@nih.gov
95+
rchurchard2l@sohu.com
96+
bchitty2m@livejournal.com
97+
arains2n@nyu.edu
98+
dtrett2o@imdb.com
99+
mpiechnik2p@buzzfeed.com
100+
eearey2q@mayoclinic.com
101+
bregus2r@squarespace.com

examples/by-email/data-loader.csv

Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
FirstName,LastName,Email,MailingCountry,Phone,Title,MobilePhone
2+
Hortense,Aireton,haireton0@cam.ac.uk,China,774-141-1849,Registered Nurse,144-282-8691
3+
Bard,Raithmill,braithmill1@reverbnation.com,Peru,983-911-7172,VP Product Management,859-147-5124
4+
Rhodie,Aggas,raggas2@tinyurl.com,Portugal,742-260-3395,Programmer IV,129-150-9854
5+
Holli,Freda,hfreda3@dagondesign.com,Portugal,559-829-1888,Marketing Assistant,676-465-8386
6+
Olive,Tomich,otomich4@digg.com,Portugal,696-175-4251,Software Engineer I,191-158-9736
7+
Curr,Neame,cneame5@sakura.ne.jp,Antigua and Barbuda,847-705-5168,Tax Accountant,319-834-0139
8+
Lavena,Tooley,ltooley6@chicagotribune.com,Indonesia,461-109-2836,Clinical Specialist,961-969-6280
9+
Bent,Moryson,bmoryson7@last.fm,South Africa,256-311-3793,Software Consultant,548-392-5370
10+
Cherice,Neylan,cneylan8@istockphoto.com,Thailand,174-917-1085,Desktop Support Technician,531-441-2476
11+
Jakob,Kidstoun,jkidstoun9@w3.org,Greece,362-947-7629,Teacher,693-592-3042
12+
Gabi,Chaffen,gchaffena@deviantart.com,Jordan,125-732-4741,Recruiter,328-709-2644
13+
Pauline,Collcott,pcollcottb@timesonline.co.uk,Russia,905-426-4893,Junior Executive,304-351-1564
14+
Margaretta,Eagell,meagellc@slideshare.net,Lithuania,451-332-3165,Research Nurse,203-363-3082
15+
Dominique,Talman,dtalmand@gmpg.org,Russia,753-582-5789,Research Assistant II,849-177-4302
16+
Bertram,Downs,bdownse@yahoo.co.jp,Mexico,663-760-3564,Marketing Assistant,379-971-3760
17+
Mylo,McNally,mmcnallyf@xinhuanet.com,Philippines,511-283-9564,Analog Circuit Design manager,240-643-7118
18+
Jacobo,Cradduck,jcradduckg@wordpress.com,China,711-762-8932,Staff Scientist,155-332-3945
19+
Hedvig,Eckly,hecklyh@mapquest.com,Thailand,504-426-3890,Assistant Professor,661-325-4538
20+
Shay,Bartlomiejczyk,sbartlomiejczyki@google.com,Cuba,224-174-9540,Chemical Engineer,498-966-8837
21+
Lora,Rossoni,lrossonij@ucla.edu,Ukraine,713-141-9527,VP Sales,336-175-0250
22+
Celestine,MacCaughey,cmaccaugheyk@live.com,Macedonia,603-315-6701,Budget/Accounting Analyst IV,442-871-8980
23+
Michele,Lambarton,mlambartonl@hc360.com,Greece,818-523-5941,Help Desk Operator,926-992-6924
24+
Darsie,Sambedge,dsambedgem@economist.com,Russia,660-235-2074,Graphic Designer,907-488-1645
25+
Aimil,Hamilton,ahamiltonn@apple.com,China,935-491-9584,Financial Advisor,885-782-8031
26+
Zea,Chancellor,zchancelloro@independent.co.uk,France,219-833-8596,Executive Secretary,940-439-1314
27+
Vincent,Cowpland,vcowplandp@omniture.com,Indonesia,733-212-9023,General Manager,511-605-8518
28+
Elfrieda,Ramsdale,eramsdaleq@de.vu,Uganda,734-865-8385,Human Resources Manager,804-448-7692
29+
Tedra,Ratchford,tratchfordr@devhub.com,United States,504-187-5766,Assistant Manager,629-521-6176
30+
Maximilianus,Clemencon,mclemencons@twitter.com,Philippines,132-644-2247,Actuary,759-213-5726
31+
Shep,Voller,svollert@cbsnews.com,Mexico,765-638-5495,Food Chemist,807-319-5451
32+
Rodd,Snowdon,rsnowdonu@guardian.co.uk,Palestinian Territory,242-775-5461,Senior Sales Associate,610-665-9951
33+
Tina,Gianolo,tgianolov@bloomberg.com,Portugal,806-772-7872,Budget/Accounting Analyst I,760-823-7063
34+
Merlina,Schwandermann,mschwandermannw@weebly.com,Ukraine,458-175-9979,Actuary,113-202-9089
35+
Joell,Cicchetto,jcicchettox@deliciousdays.com,China,880-610-6910,Technical Writer,110-923-9427
36+
Shelley,Tomenson,stomensony@accuweather.com,Indonesia,122-895-8062,Desktop Support Technician,105-415-0731
37+
Kayle,Greasty,kgreastyz@unesco.org,Peru,376-875-2645,Biostatistician III,843-310-4589
38+
Nevsa,Gostyke,ngostyke10@jugem.jp,Lithuania,995-788-5865,Safety Technician II,635-370-5722
39+
Yehudi,Attle,yattle11@nymag.com,Indonesia,777-411-6246,Help Desk Technician,970-184-7389
40+
Jackie,Manicom,jmanicom12@apple.com,Russia,698-834-9618,Financial Advisor,134-549-2597
41+
Benedick,Fantonetti,bfantonetti13@businessinsider.com,Sweden,129-356-1600,Senior Developer,293-379-5248
42+
Ray,Perree,rperree14@salon.com,Nigeria,641-255-6072,Automation Specialist IV,792-343-5240
43+
Nester,Crathern,ncrathern15@chicagotribune.com,Comoros,948-173-7998,Actuary,797-974-3994
44+
Torin,Bremen,tbremen16@printfriendly.com,Mexico,638-687-8201,Account Executive,842-246-6111
45+
Abbey,Giacomini,agiacomini17@tmall.com,Indonesia,752-409-7245,Office Assistant III,533-279-2044
46+
Luella,Spurgeon,lspurgeon18@arizona.edu,China,310-807-6342,Media Manager II,327-396-4345
47+
Francklin,Sterry,fsterry19@google.com.br,Indonesia,353-136-8226,Registered Nurse,553-429-8424
48+
Trixi,Duffill,tduffill1a@soundcloud.com,Venezuela,139-479-9874,Desktop Support Technician,262-900-0313
49+
Rosabelle,Greenacre,rgreenacre1b@prlog.org,United States,501-589-9741,Clinical Specialist,394-549-9520
50+
Rachel,Scott,rscott1c@un.org,France,100-259-1002,Desktop Support Technician,734-963-6128
51+
Corine,Banbury,cbanbury1d@cnet.com,Peru,280-480-8836,Mechanical Systems Engineer,138-782-2746
52+
Roz,Deppen,rdeppen1e@tinyurl.com,Afghanistan,954-690-5074,Registered Nurse,536-488-6009
53+
Wallis,Braffington,wbraffington1f@sfgate.com,Russia,677-501-8542,Automation Specialist III,891-593-4344
54+
Corie,Skittle,cskittle1g@digg.com,Papua New Guinea,581-187-4279,Information Systems Manager,191-226-8331
55+
Vachel,Garside,vgarside1h@cpanel.net,Poland,729-825-6386,Biostatistician II,262-324-0475
56+
Martainn,Whittek,mwhittek1i@biblegateway.com,Guatemala,953-198-5982,Mechanical Systems Engineer,861-542-6908
57+
Ivette,Greeve,igreeve1j@studiopress.com,Greece,964-351-9613,VP Sales,499-239-9600
58+
Broderick,Caudray,bcaudray1k@amazon.co.uk,Sweden,168-105-8228,Research Assistant III,134-316-6825
59+
Sal,Gooder,sgooder1l@phpbb.com,China,559-209-6802,Nurse,764-783-7957
60+
Lexine,Leverton,lleverton1m@google.com,Uzbekistan,337-412-1974,Automation Specialist IV,274-953-0641
61+
Westley,Butterfint,wbutterfint1n@walmart.com,Pakistan,850-466-7344,Staff Accountant II,203-713-9106
62+
Natal,McCleary,nmccleary1o@un.org,Indonesia,498-648-5087,Associate Professor,265-932-9935
63+
Loraine,Trainor,ltrainor1p@indiatimes.com,Indonesia,521-612-8712,Speech Pathologist,597-615-6166
64+
Rockie,Polini,rpolini1q@psu.edu,China,267-579-7542,VP Marketing,259-298-0015
65+
Lowe,Carnock,lcarnock1r@shinystat.com,Ireland,106-768-2433,VP Quality Control,188-704-0714
66+
Dawn,Yakubov,dyakubov1s@skype.com,Nigeria,899-459-2134,Assistant Manager,940-244-0720
67+
Michell,Drust,mdrust1t@economist.com,South Africa,560-778-8252,Paralegal,500-166-3697
68+
Genvieve,Espie,gespie1u@aol.com,Yemen,585-921-7103,Paralegal,774-995-5202
69+
Jillane,Garbett,jgarbett1v@feedburner.com,Poland,695-895-4375,Chief Design Engineer,849-344-9610
70+
Carson,Swalowe,cswalowe1w@craigslist.org,China,330-767-0455,Web Developer I,117-508-9266
71+
Robbin,Jouannisson,rjouannisson1x@sun.com,Indonesia,431-864-5388,Systems Administrator I,953-430-6999
72+
Jeri,Walenta,jwalenta1y@flickr.com,Tajikistan,610-281-6748,Senior Quality Engineer,498-597-2676
73+
Arliene,Thame,athame1z@yandex.ru,Indonesia,752-431-3754,Professor,681-300-8567
74+
Jeff,Poynser,jpoynser20@whitehouse.gov,Portugal,835-781-0613,Electrical Engineer,453-275-3289
75+
Daniella,Georgot,dgeorgot21@de.vu,Philippines,174-411-7036,Research Assistant II,414-140-4679
76+
Cherida,Serrell,cserrell22@ox.ac.uk,Thailand,994-676-8399,Financial Advisor,193-647-3816
77+
Maurizia,Gosnall,mgosnall23@histats.com,Russia,192-299-1719,Account Representative I,846-614-0188
78+
Marketa,Cogar,mcogar24@fotki.com,United States,515-211-2110,Senior Sales Associate,854-751-1679
79+
Milly,Melhuish,mmelhuish25@newsvine.com,China,620-243-2859,Graphic Designer,949-578-2926
80+
Micky,Liddon,mliddon26@gravatar.com,Portugal,444-368-1711,Dental Hygienist,552-457-5955
81+
Del,Vankov,dvankov27@myspace.com,Poland,422-539-2625,Programmer Analyst II,951-604-3207
82+
Lusa,Durward,ldurward28@nifty.com,Mexico,896-743-2755,Geologist III,180-117-4670
83+
Leshia,Ricciardi,lricciardi29@shareasale.com,China,795-112-5386,Assistant Professor,901-260-6097
84+
Lorrie,Nobles,lnobles2a@wiley.com,Mexico,581-635-9831,Developer III,734-500-8048
85+
Larissa,Fisbey,lfisbey2b@angelfire.com,Brazil,506-446-4718,Account Representative IV,510-676-5558
86+
Saxe,Geydon,sgeydon2c@patch.com,Thailand,464-791-4077,Structural Analysis Engineer,262-371-1284
87+
Eulalie,Cargenven,ecargenven2d@wikia.com,Russia,553-362-6429,Software Consultant,117-869-5254
88+
Way,Haigh,whaigh2e@globo.com,Portugal,744-449-9278,Budget/Accounting Analyst III,239-795-2443
89+
Lewiss,Brack,lbrack2f@instagram.com,China,825-540-0449,Librarian,436-290-0006
90+
Mattie,Hustler,mhustler2g@cnet.com,China,305-453-2353,Assistant Professor,987-898-7138
91+
Moe,Uden,muden2h@businessinsider.com,Poland,262-910-1433,Analyst Programmer,944-364-9135
92+
Padriac,Oughtright,poughtright2i@princeton.edu,Indonesia,760-872-5774,Internal Auditor,655-875-9766
93+
Emmeline,Creaser,ecreaser2j@ftc.gov,China,176-186-7404,Marketing Manager,846-521-1606
94+
Winny,Audus,waudus2k@nih.gov,Paraguay,846-212-4676,Editor,497-560-7764
95+
Ryann,Churchard,rchurchard2l@sohu.com,Dominican Republic,149-565-0752,Research Associate,325-127-1706
96+
Bryn,Chitty,bchitty2m@livejournal.com,France,849-604-5630,Account Representative IV,635-521-7941
97+
Anjanette,Rains,arains2n@nyu.edu,China,624-319-7104,Senior Developer,295-666-4202
98+
Dean,Trett,dtrett2o@imdb.com,Philippines,313-241-0348,Health Coach I,544-266-4613
99+
Maurizia,Piechnik,mpiechnik2p@buzzfeed.com,Indonesia,679-487-0992,Quality Engineer,662-696-6011
100+
Elia,Earey,eearey2q@mayoclinic.com,Nigeria,287-276-2445,Technical Writer,103-557-1317
101+
Bobette,Regus,bregus2r@squarespace.com,Thailand,392-422-1401,Account Coordinator,717-820-5134

examples/by-email/iri-by-email.sparql

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
2+
PREFIX manetu: <http://manetu.com/manetu/>
3+
PREFIX mmeta: <http://manetu.io/rdf/metadata/0.1/>
4+
5+
SELECT ?iri
6+
7+
WHERE {
8+
?iri rdf:object ?email ;
9+
rdf:predicate manetu:email .
10+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
PREFIX manetu: <http://manetu.com/manetu/>
2+
PREFIX mmeta: <http://manetu.io/rdf/metadata/0.1/>
3+
4+
SELECT ?label
5+
6+
WHERE {
7+
?s manetu:email ?email ;
8+
mmeta:vaultLabel ?label .
9+
}

0 commit comments

Comments
 (0)