Description
Description
Many workflows have http://schema.org annotations, and that is something we encourage as best practice. We don't expose them currently in the HTML (only in the RDF and Research Object).
We should find the most common ones and add them to the HTML where appropriate, in particular like
http://schema.org/license or http://schema.org/author
(A separate issue is that we should include our RDF with schema.org annotations in a <script>
JSON-LD tag)
Which Schema.org properties are used?
I ran this SPARQL query against the production instance to find what was used. Note that it detects any annotation within the graph after parsing a CWL file, so the annotation might not be on the workflow itself (in fact some of them are nested under a different annotation, like details of an address).
PREFIX cwl: <https://w3id.org/cwl/cwl#>
PREFIX schema: <http://schema.org/>
SELECT ?p (COUNT(?g) AS ?count)
WHERE {
SELECT DISTINCT ?g ?p WHERE {
GRAPH ?g {
?s ?p ?o .
}
FILTER ( strstarts(str(?p), "http://schema.org/"))
}
}
GROUP BY ?p
ORDER BY DESC(?count)
Other properties
PREFIX cwl: <https://w3id.org/cwl/cwl#>
PREFIX schema: <http://schema.org/>
SELECT ?p (COUNT(?g) AS ?count)
WHERE {
SELECT DISTINCT ?g ?p WHERE {
GRAPH ?g {
?s ?p ?o .
}
FILTER (! strstarts(str(?p), "http://schema.org/"))
FILTER (! strstarts(str(?p), "https://w3id.org/cwl/"))
}
}
GROUP BY ?p
ORDER BY DESC(?count)
Note how some of these are not correctly namespaced, like foaf:
or dct:
-- might or might not be related to common-workflow-language/cwltool#427.