sparna-git / shacl-play

SHACL validation UI, SHACL documentation generator, SHACL generator from RDF.
http://shacl-play.sparna.fr
GNU Lesser General Public License v3.0
24 stars 15 forks source link

Generate a SPARQL query in PropertyShapeDocumentation to display it in the dataset documentation page #125

Closed tfrancart closed 4 months ago

tfrancart commented 5 months ago

Store the query in PropertyShapeDocumentation.distinctObjectsSparqlQuery

The SPARQL query should look like

SELECT DISTINCT ?object
WHERE {
    ?x a <https://www.ica.org/standards/RiC/ontology#Record> .
    ?x <https://www.ica.org/standards/RiC/ontology#conditionsOfUse> ?object .
}

Add a line in ShapesDocumentationModelReader similar to: visit.visit(new EnrichDocumentationWithChartsVisitor(shaclGraph, shapesDocumentation, lang));

Utiliser la librairie SPARQL Jena : cf. la classe QueryGenerator in shacl-sparql-query-gen