Skip to content

Commit 648b109

Browse files
committed
up
1 parent 1a82c7d commit 648b109

6 files changed

+239
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
@prefix dc: <http://purl.org/dc/elements/1.1/> .
2+
@prefix dcterms: <http://purl.org/dc/terms/> .
3+
@prefix ex: <https://lotus.nprod.net/lotus-sparql-examples/Chemicals/> .
4+
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
5+
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
6+
@prefix schema: <https://schema.org/> .
7+
@prefix sh: <http://www.w3.org/ns/shacl#> .
8+
@prefix wd: <http://www.wikidata.org/entity/> .
9+
@prefix wdt: <http://www.wikidata.org/prop/direct/> .
10+
11+
ex:wd_chemical_classes_cxsmiles a sh:SPARQLExecutable, sh:SPARQLSelectExecutable ;
12+
rdfs:comment "Chemical classes defined by CxSMILES."@en ;
13+
sh:prefixes _:sparql_examples_prefixes;
14+
sh:select """
15+
PREFIX wd: <http://www.wikidata.org/entity/>
16+
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
17+
#title: Chemical classes defined by CxSMILES
18+
SELECT * WHERE {
19+
VALUES ?instance {
20+
wd:Q15711994 # group of isomeric entities
21+
wd:Q17339814 # group or class of chemical substances
22+
wd:Q47154513 # structural class of chemical entities
23+
wd:Q55640599 # group of chemical entities
24+
wd:Q56256173 # class of chemical entities with similar applications or functions
25+
wd:Q56256178 # class of chemical entities with similar source or occurrence
26+
wd:Q55662456 # group of ortho, meta, para isomers
27+
# wd:Q59199015 # group of stereoisomers # TODO see later on when fast enough
28+
wd:Q72070508 # group or class of chemical entities
29+
wd:Q74892521 # imprecise class of chemical entities
30+
}
31+
?class wdt:P31 ?instance.
32+
?class wdt:P10718 ?structure.
33+
}
34+
""";
35+
schema:target <https://query.wikidata.org/sparql> ;
36+
dcterms:license <https://creativecommons.org/publicdomain/zero/1.0/> ;
37+
schema:keywords "chemical classes" ;
38+
dc:creator "Lotus Contributors" .
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
@prefix dc: <http://purl.org/dc/elements/1.1/> .
2+
@prefix dcterms: <http://purl.org/dc/terms/> .
3+
@prefix ex: <https://lotus.nprod.net/lotus-sparql-examples/Chemicals/> .
4+
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
5+
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
6+
@prefix schema: <https://schema.org/> .
7+
@prefix sh: <http://www.w3.org/ns/shacl#> .
8+
@prefix wd: <http://www.wikidata.org/entity/> .
9+
@prefix wdt: <http://www.wikidata.org/prop/direct/> .
10+
11+
ex:wd_chemical_classes_fake_smiles a sh:SPARQLExecutable, sh:SPARQLSelectExecutable ;
12+
rdfs:comment "Chemical classes defined by SMARTS (fake SMILES)."@en ;
13+
sh:prefixes _:sparql_examples_prefixes;
14+
sh:select """
15+
PREFIX wd: <http://www.wikidata.org/entity/>
16+
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
17+
#title: Chemical classes defined by SMARTS
18+
SELECT * WHERE {
19+
VALUES ?instance {
20+
wd:Q15711994 # group of isomeric entities
21+
wd:Q17339814 # group or class of chemical substances
22+
wd:Q47154513 # structural class of chemical entities
23+
wd:Q55640599 # group of chemical entities
24+
wd:Q56256173 # class of chemical entities with similar applications or functions
25+
wd:Q56256178 # class of chemical entities with similar source or occurrence
26+
wd:Q55662456 # group of ortho, meta, para isomers
27+
# wd:Q59199015 # group of stereoisomers # TODO see later on when fast enough
28+
wd:Q72070508 # group or class of chemical entities
29+
wd:Q74892521 # imprecise class of chemical entities
30+
}
31+
?structure wdt:P31 ?instance.
32+
?structure wdt:P8533 ?smiles.
33+
}
34+
""";
35+
schema:target <https://query.wikidata.org/sparql> ;
36+
dcterms:license <https://creativecommons.org/publicdomain/zero/1.0/> ;
37+
schema:keywords "chemical classes" ;
38+
dc:creator "Lotus Contributors" .
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
@prefix dc: <http://purl.org/dc/elements/1.1/> .
2+
@prefix dcterms: <http://purl.org/dc/terms/> .
3+
@prefix ex: <https://lotus.nprod.net/lotus-sparql-examples/Chemicals/> .
4+
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
5+
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
6+
@prefix schema: <https://schema.org/> .
7+
@prefix sh: <http://www.w3.org/ns/shacl#> .
8+
@prefix wd: <http://www.wikidata.org/entity/> .
9+
@prefix wdt: <http://www.wikidata.org/prop/direct/> .
10+
11+
ex:wd_chemical_classes_smarts a sh:SPARQLExecutable, sh:SPARQLSelectExecutable ;
12+
rdfs:comment "Chemical classes defined by SMARTS."@en ;
13+
sh:prefixes _:sparql_examples_prefixes;
14+
sh:select """
15+
PREFIX wd: <http://www.wikidata.org/entity/>
16+
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
17+
#title: Chemical classes defined by SMARTS
18+
SELECT * WHERE {
19+
VALUES ?instance {
20+
wd:Q15711994 # group of isomeric entities
21+
wd:Q17339814 # group or class of chemical substances
22+
wd:Q47154513 # structural class of chemical entities
23+
wd:Q55640599 # group of chemical entities
24+
wd:Q56256173 # class of chemical entities with similar applications or functions
25+
wd:Q56256178 # class of chemical entities with similar source or occurrence
26+
wd:Q55662456 # group of ortho, meta, para isomers
27+
# wd:Q59199015 # group of stereoisomers # TODO see later on when fast enough
28+
wd:Q72070508 # group or class of chemical entities
29+
wd:Q74892521 # imprecise class of chemical entities
30+
}
31+
?class wdt:P31 ?instance.
32+
?class wdt:P8533 ?structure.
33+
}
34+
""";
35+
schema:target <https://query.wikidata.org/sparql> ;
36+
dcterms:license <https://creativecommons.org/publicdomain/zero/1.0/> ;
37+
schema:keywords "chemical classes" ;
38+
dc:creator "Lotus Contributors" .
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
@prefix dc: <http://purl.org/dc/elements/1.1/> .
2+
@prefix dcterms: <http://purl.org/dc/terms/> .
3+
@prefix ex: <https://lotus.nprod.net/lotus-sparql-examples/Chemicals/> .
4+
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
5+
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
6+
@prefix schema: <https://schema.org/> .
7+
@prefix sh: <http://www.w3.org/ns/shacl#> .
8+
@prefix p: <http://www.wikidata.org/prop/> .
9+
@prefix wd: <http://www.wikidata.org/entity/> .
10+
@prefix wdt: <http://www.wikidata.org/prop/direct/> .
11+
12+
ex:wd_chemical_classes_smiles_canonical a sh:SPARQLExecutable, sh:SPARQLSelectExecutable ;
13+
rdfs:comment "Chemical classes defined by canonical SMILES."@en ;
14+
sh:prefixes _:sparql_examples_prefixes;
15+
sh:select """
16+
PREFIX p: <http://www.wikidata.org/prop/>
17+
PREFIX wd: <http://www.wikidata.org/entity/>
18+
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
19+
#title: Chemical classes defined by canonical SMILES
20+
SELECT * WHERE {
21+
VALUES ?instance {
22+
wd:Q15711994 # group of isomeric entities
23+
wd:Q17339814 # group or class of chemical substances
24+
wd:Q47154513 # structural class of chemical entities
25+
wd:Q55640599 # group of chemical entities
26+
wd:Q56256173 # class of chemical entities with similar applications or functions
27+
wd:Q56256178 # class of chemical entities with similar source or occurrence
28+
wd:Q55662456 # group of ortho, meta, para isomers
29+
# wd:Q59199015 # group of stereoisomers # TODO see later on when fast enough
30+
wd:Q72070508 # group or class of chemical entities
31+
wd:Q74892521 # imprecise class of chemical entities
32+
}
33+
?class wdt:P31 ?instance.
34+
?class wdt:P233 ?structure.
35+
OPTIONAL { ?class p:P2017 ?isomeric. }
36+
FILTER(!(BOUND(?isomeric)))
37+
}
38+
""";
39+
schema:target <https://query.wikidata.org/sparql> ;
40+
dcterms:license <https://creativecommons.org/publicdomain/zero/1.0/> ;
41+
schema:keywords "chemical classes" ;
42+
dc:creator "Lotus Contributors" .
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
@prefix dc: <http://purl.org/dc/elements/1.1/> .
2+
@prefix dcterms: <http://purl.org/dc/terms/> .
3+
@prefix ex: <https://lotus.nprod.net/lotus-sparql-examples/Chemicals/> .
4+
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
5+
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
6+
@prefix schema: <https://schema.org/> .
7+
@prefix sh: <http://www.w3.org/ns/shacl#> .
8+
@prefix wd: <http://www.wikidata.org/entity/> .
9+
@prefix wdt: <http://www.wikidata.org/prop/direct/> .
10+
11+
ex:wd_chemical_classes_smiles_isomeric a sh:SPARQLExecutable, sh:SPARQLSelectExecutable ;
12+
rdfs:comment "Chemical classes defined by isomeric SMILES."@en ;
13+
sh:prefixes _:sparql_examples_prefixes;
14+
sh:select """
15+
PREFIX wd: <http://www.wikidata.org/entity/>
16+
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
17+
#title: Chemical classes defined by isomeric SMILES
18+
SELECT * WHERE {
19+
VALUES ?instance {
20+
wd:Q15711994 # group of isomeric entities
21+
wd:Q17339814 # group or class of chemical substances
22+
wd:Q47154513 # structural class of chemical entities
23+
wd:Q55640599 # group of chemical entities
24+
wd:Q56256173 # class of chemical entities with similar applications or functions
25+
wd:Q56256178 # class of chemical entities with similar source or occurrence
26+
wd:Q55662456 # group of ortho, meta, para isomers
27+
# wd:Q59199015 # group of stereoisomers # TODO see later on when fast enough
28+
wd:Q72070508 # group or class of chemical entities
29+
wd:Q74892521 # imprecise class of chemical entities
30+
}
31+
?class wdt:P31 ?instance.
32+
?class wdt:P2017 ?structure.
33+
}
34+
""";
35+
schema:target <https://query.wikidata.org/sparql> ;
36+
dcterms:license <https://creativecommons.org/publicdomain/zero/1.0/> ;
37+
schema:keywords "chemical classes" ;
38+
dc:creator "Lotus Contributors" .
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
@prefix dc: <http://purl.org/dc/elements/1.1/> .
2+
@prefix dcterms: <http://purl.org/dc/terms/> .
3+
@prefix ex: <https://lotus.nprod.net/lotus-sparql-examples/Chemicals/> .
4+
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
5+
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
6+
@prefix schema: <https://schema.org/> .
7+
@prefix sh: <http://www.w3.org/ns/shacl#> .
8+
@prefix spex: <https://purl.expasy.org/sparql-examples/ontology#> .
9+
@prefix wd: <http://www.wikidata.org/entity/> .
10+
@prefix wdt: <http://www.wikidata.org/prop/direct/> .
11+
@prefix wikibase: <http://wikiba.se/ontology#> .
12+
@prefix bd: <http://www.bigdata.com/rdf#> .
13+
14+
ex:wd_chemical_classes_taxonomy a sh:SPARQLExecutable, sh:SPARQLSelectExecutable ;
15+
rdfs:comment "Chemical classes taxonomy."@en ;
16+
sh:prefixes _:sparql_examples_prefixes;
17+
sh:select """
18+
PREFIX wd: <http://www.wikidata.org/entity/>
19+
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
20+
PREFIX wikibase: <http://wikiba.se/ontology#>
21+
PREFIX bd: <http://www.bigdata.com/rdf#>
22+
#title: Chemical classes taxonomy
23+
SELECT * WHERE {
24+
VALUES ?instance {
25+
wd:Q15711994 # group of isomeric entities
26+
wd:Q17339814 # group or class of chemical substances
27+
wd:Q47154513 # structural class of chemical entities
28+
wd:Q55640599 # group of chemical entities
29+
wd:Q56256173 # class of chemical entities with similar applications or functions
30+
wd:Q56256178 # class of chemical entities with similar source or occurrence
31+
wd:Q55662456 # group of ortho, meta, para isomers
32+
# wd:Q59199015 # group of stereoisomers # TODO see later on when fast enough
33+
wd:Q72070508 # group or class of chemical entities
34+
wd:Q74892521 # imprecise class of chemical entities
35+
}
36+
?class wdt:P31 ?instance.
37+
OPTIONAL { ?class wdt:P279 ?parent. }
38+
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],mul,en". }
39+
}
40+
""";
41+
schema:target <https://query.wikidata.org/sparql> ;
42+
spex:federatesWith <http://wikiba.se/ontology#label> ;
43+
dcterms:license <https://creativecommons.org/publicdomain/zero/1.0/> ;
44+
schema:keywords "chemical classes" ;
45+
dc:creator "Lotus Contributors" .

0 commit comments

Comments
 (0)