Skip to content
Snippets Groups Projects
Commit bbb2db3c authored by Mathieu Massaviol's avatar Mathieu Massaviol
Browse files

Improve getSearchResults query #68

parent 7239250f
No related branches found
No related tags found
1 merge request!79Resolve "Investiguer / Optimiser les temps de réponse des requêtes Virtuoso"
......@@ -153,29 +153,32 @@ export const getSearchResults = async (resourceUriList: string[], auth?: Credent
}
WHERE {
VALUES ?s { ${formattedUris} }
VALUES ?p {
rdf:type
dct:title
dct:description
dcat:version
dcat:catalog
dcat:dataset
dcat:distribution
GRAPH ?g {
?s dct:identifier ?identifier.
VALUES ?p {
rdf:type
dct:title
dct:description
dcat:version
dcat:catalog
dcat:dataset
dcat:distribution
}
?s ?p ?o.
}
?s ?p ?o.
OPTIONAL {
?s dct:creator ?creator.
VALUES ?p2 { foaf:name foaf:givenName foaf:familyName foaf:firstName }
?creator ?p2 ?o2.
}
OPTIONAL {
?parentCatalog dcat:dataset|dcat:catalog ?s.
VALUES ?parentLink { dcat:dataset dcat:catalog }
?parentCatalog a dcat:Catalog;
?parentLink ?s.
VALUES ?pparentCatalog { dct:identifier dct:title }
?parentCatalog ?pparentCatalog ?oparentCatalog.
}
GRAPH ?g {
?s dct:identifier ?identifier.
}
}
`,
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment