diff --git a/demo/check.html b/demo/check.html index 6aaafc3..4710f00 100644 --- a/demo/check.html +++ b/demo/check.html @@ -48,41 +48,41 @@
⚠️ No prefixes found
+ resultsDiv.innerHTML += `Add prefix/namespace definitions to your endpoint using SHACL sh:namespace
and sh:prefix
properties.
Checkout the sparql-examples project - to help you generate prefix definitions alongside SPARQL queries examples and upload them to your endpoint.
`; + to help you generate prefix definitions alongside SPARQL queries examples and upload them to your endpoint. +We are running this query to retrieve prefixes:
+${checkPrefixesQuery.replaceAll("<", "<").replaceAll(">", ">")}
`;
} else {
- resultsDiv.innerHTML += `✅ Found ${prefixesResults.length} prefixes
`; + resultsDiv.innerHTML += `⚠️ No example SPARQL queries found
+ resultsDiv.innerHTML += `Checkout the sparql-examples project - to help you generate SHACL representations of SPARQL queries and upload them to your endpoint.
`; + to help you generate SHACL representations of SPARQL queries and upload them to your endpoint. +We are running this query to retrieve examples:
+${checkExamplesQuery.replaceAll("<", "<").replaceAll(">", ">")}
`;
} else {
- resultsDiv.innerHTML += `✅ Found ${exampleQueriesResults.length} example SPARQL queries
`; + resultsDiv.innerHTML += `⚠️ No VoID description found.
+ resultsDiv.innerHTML += `Checkout the void-generator project to automatically generate a VoID description for the classes and predicates inside your endpoint, - and upload it to your endpoint.
`; + and upload it to your endpoint. +We are running this query to retrieve the VoID description:
+PREFIX up: <http://purl.uniprot.org/core/>
+PREFIX void: <http://rdfs.org/ns/void#>
+PREFIX void-ext: <http://ldf.fi/void-ext#>
+SELECT DISTINCT ?subjectClass ?prop ?objectClass ?objectDatatype
+WHERE {
+ ?cp void:class ?subjectClass ;
+ void:propertyPartition ?pp .
+ ?pp void:property ?prop .
+ OPTIONAL {
+ {
+ ?pp void:classPartition [ void:class ?objectClass ] .
+ } UNION {
+ ?pp void-ext:datatypePartition [ void-ext:datatype ?objectDatatype ] .
+ }
+ }
+}
`;
return;
} else {
- resultsDiv.innerHTML += `✅ Found VoID description for ${voidResults.length} classes
`; + resultsDiv.innerHTML += `❌ Error querying the endpoint: ${error.message}
`; + resultsDiv.innerHTML += `