.
This commit is contained in:
+2
-2
@@ -20,7 +20,7 @@ pub async fn index_ontology(
|
||||
let description_filter = language.to_filter_expression("description");
|
||||
|
||||
let mut request = OntologyQueryRequest::default();
|
||||
request.sparql_query = format!(r#"PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
||||
request.sparql_query = Some(format!(r#"PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
|
||||
|
||||
@@ -34,7 +34,7 @@ SELECT ?class ?subject ?label ?description WHERE {{
|
||||
OPTIONAL {{ ?subject skos:definition ?definition }}
|
||||
BIND(COALESCE(?definition, ?comment) AS ?description)
|
||||
{description_filter}
|
||||
}}"#);
|
||||
}}"#));
|
||||
|
||||
let response = client.query(request).await.unwrap();
|
||||
let parser_output = QueryResultsParser::from_format(QueryResultsFormat::Json)
|
||||
|
||||
Reference in New Issue
Block a user