@@ -102,7 +102,7 @@ This query collects data from the Knowledge4COVID-19 KG and DBpedia. See below h
102
102
103
103
from DeTrusty import get_config, run_query
104
104
105
- config = get_config(' https://raw.githubusercontent.com/SDM-TIB/DeTrusty/master/example/K4COVID/rdfmts.json ' )
105
+ config = get_config(' https://raw.githubusercontent.com/SDM-TIB/DeTrusty/master/example/K4COVID/rdfmts.ttl ' )
106
106
query = ' https://raw.githubusercontent.com/SDM-TIB/DeTrusty/master/example/K4COVID/Q1.rq'
107
107
result = run_query(query, config = config, join_stars_locally = False )
108
108
print (result)
@@ -121,7 +121,7 @@ This query collects data from the Knowledge4COVID-19 KG and Wikidata. See below
121
121
122
122
from DeTrusty import get_config, run_query
123
123
124
- config = get_config(' https://raw.githubusercontent.com/SDM-TIB/DeTrusty/master/example/K4COVID/rdfmts.json ' )
124
+ config = get_config(' https://raw.githubusercontent.com/SDM-TIB/DeTrusty/master/example/K4COVID/rdfmts.ttl ' )
125
125
query = ' https://raw.githubusercontent.com/SDM-TIB/DeTrusty/master/example/K4COVID/Q2.rq'
126
126
result = run_query(query, config = config, join_stars_locally = False )
127
127
print (result)
@@ -140,7 +140,7 @@ This query collects data from the Knowledge4COVID-19 KG and DBpedia. See below h
140
140
141
141
from DeTrusty import get_config, run_query
142
142
143
- config = get_config(' https://raw.githubusercontent.com/SDM-TIB/DeTrusty/master/example/K4COVID/rdfmts.json ' )
143
+ config = get_config(' https://raw.githubusercontent.com/SDM-TIB/DeTrusty/master/example/K4COVID/rdfmts.ttl ' )
144
144
query = ' https://raw.githubusercontent.com/SDM-TIB/DeTrusty/master/example/K4COVID/Q3.rq'
145
145
result = run_query(query, config = config, join_stars_locally = False )
146
146
print (result)
@@ -159,7 +159,7 @@ This query collects data from the Knowledge4COVID-19 KG and Wikidata. See below
159
159
160
160
from DeTrusty import get_config, run_query
161
161
162
- config = get_config(' https://raw.githubusercontent.com/SDM-TIB/DeTrusty/master/example/K4COVID/rdfmts.json ' )
162
+ config = get_config(' https://raw.githubusercontent.com/SDM-TIB/DeTrusty/master/example/K4COVID/rdfmts.ttl ' )
163
163
query = ' https://raw.githubusercontent.com/SDM-TIB/DeTrusty/master/example/K4COVID/Q4.rq'
164
164
result = run_query(query, config = config, join_stars_locally = False )
165
165
print (result)
@@ -178,7 +178,7 @@ This query collects data from the Knowledge4COVID-19 KG, DBpedia, and Wikidata.
178
178
179
179
from DeTrusty import get_config, run_query
180
180
181
- config = get_config(' https://raw.githubusercontent.com/SDM-TIB/DeTrusty/master/example/K4COVID/rdfmts.json ' )
181
+ config = get_config(' https://raw.githubusercontent.com/SDM-TIB/DeTrusty/master/example/K4COVID/rdfmts.ttl ' )
182
182
query = ' https://raw.githubusercontent.com/SDM-TIB/DeTrusty/master/example/K4COVID/Q5.rq'
183
183
result = run_query(query, config = config, join_stars_locally = False )
184
184
print (result)
@@ -208,7 +208,7 @@ This query collects data from the World Bank KG and Wikidata. See below how to e
208
208
209
209
from DeTrusty import get_config, run_query
210
210
211
- config = get_config(' https://raw.githubusercontent.com/SDM-TIB/DeTrusty/master/example/CoyPu/rdfmts.json ' )
211
+ config = get_config(' https://raw.githubusercontent.com/SDM-TIB/DeTrusty/master/example/CoyPu/rdfmts.ttl ' )
212
212
query = ' https://raw.githubusercontent.com/SDM-TIB/DeTrusty/master/example/CoyPu/Q1.rq'
213
213
result = run_query(query, config = config, join_stars_locally = False )
214
214
print (result)
@@ -227,7 +227,7 @@ This query collects data from the World Bank KG and Wikidata. See below how to e
227
227
228
228
from DeTrusty import get_config, run_query
229
229
230
- config = get_config(' https://raw.githubusercontent.com/SDM-TIB/DeTrusty/master/example/CoyPu/rdfmts.json ' )
230
+ config = get_config(' https://raw.githubusercontent.com/SDM-TIB/DeTrusty/master/example/CoyPu/rdfmts.ttl ' )
231
231
query = ' https://raw.githubusercontent.com/SDM-TIB/DeTrusty/master/example/CoyPu/Q2.rq'
232
232
result = run_query(query, config = config, join_stars_locally = False )
233
233
print (result)
@@ -260,14 +260,14 @@ Standard Case
260
260
=============
261
261
262
262
The standard case is to include only public SPARQL endpoints in the federation, collect the source description via SPARQL queries, and consider all classes in the endpoints.
263
- The following code snippet collects the source description of two public endpoints and saves it in the file ``./Config/rdfmts.json ``.
263
+ The following code snippet collects the source description of two public endpoints and saves it in the file ``./Config/rdfmts.ttl ``.
264
264
265
265
.. code :: python
266
266
267
267
from DeTrusty.Molecule.MTCreation import create_rdfmts
268
268
269
269
endpoints = [' http://url_to_endpoint_1' , ' https://url_to_endpoint_2:port/sparql' ]
270
- create_rdfmts(endpoints, ' ./Config/rdfmts.json ' )
270
+ create_rdfmts(endpoints, ' ./Config/rdfmts.ttl ' )
271
271
272
272
**Alternatively, ** ``None `` can be passed instead of a path.
273
273
In that case, ``create_rdfmts `` returns the source description in DeTrusty's internal structure.
@@ -309,7 +309,7 @@ The configuration changes slightly compared to the standard case:
309
309
' password' : ' YOUR_PASSWORD'
310
310
}
311
311
}
312
- create_rdfmts(endpoints, ' ./Config/rdfmts.json ' )
312
+ create_rdfmts(endpoints, ' ./Config/rdfmts.ttl ' )
313
313
314
314
The keys of ``endpoints `` are the URLs of the SPARQL endpoints.
315
315
Each endpoint is represented as a dictionary itself; holding all parameters in the form of (key, value) pairs.
@@ -339,7 +339,7 @@ Of course, this is only feasible for endpoints that were created using RML mappi
339
339
]
340
340
}
341
341
}
342
- create_rdfmts(endpoints, ' ./Config/rdfmts.json ' )
342
+ create_rdfmts(endpoints, ' ./Config/rdfmts.ttl ' )
343
343
344
344
The key ``mappings `` holds a list of paths to the mapping files that were used to create the RDF data served by the SPARQL endpoint.
345
345
@@ -365,6 +365,6 @@ Starting with version 0.7.0, DeTrusty can restrict the collection of metadata to
365
365
]
366
366
}
367
367
}
368
- create_rdfmts(endpoints, ' ./Config/rdfmts.json ' )
368
+ create_rdfmts(endpoints, ' ./Config/rdfmts.ttl ' )
369
369
370
370
The key ``types `` holds a list of all the classes of the endpoint that should be considered for the source description creation process.
0 commit comments