Hi All,
I am very new in using sparql. I have the below query that I'm currently looking for ways to optimize. Currently here is the execution metrics:
Query mode | query
Request execution time (ms) | 24316.423
Status code | 200
Status OK? | True
# of results | 5
Response content size (bytes) | 5622
I will love to see this execution significantly.
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX sck: <https://graph.sustainability.fcel.com/>
SELECT * WHERE {
?resourceUri a sck:Resource ;
rdfs:label ?resourceName .
?resourceFactorUri sck:converts ?resourceUri ;
sck:dateFrom ?dateFrom ;
sck:dateTo ?dateTo ;
sck:hasAssetOwner/rdfs:label ?owner ;
sck:hasSource/rdfs:label ?source;
sck:hasLocation/rdfs:label ?location.
FILTER CONTAINS(LCASE(?resourceName), LCASE("")) .
FILTER CONTAINS(LCASE(?owner), LCASE("")) .
FILTER CONTAINS(LCASE(?location), LCASE("")) .
FILTER CONTAINS(LCASE(?source), LCASE("")) .
FILTER (CONTAINS(LCASE(?resourceName), LCASE("steel")) || CONTAINS(LCASE(?owner), LCASE("steel")) || CONTAINS(LCASE(?location), LCASE("steel")) || CONTAINS(LCASE(?source), LCASE("steel"))).
FILTER(STR(?resourceFactorUri) > "")
}
ORDER BY ?resourceFactorUri
LIMIT 5
Any help or suggestions will be greatly appreciated.