Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions pmd4/src/rdf-validator-suite.edn
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@
:source "swirrl/validations/pmd4/SELECT_DatasetExactlyOneModifiedDate.sparql"
:type :sparql
:name "DatasetExactlyOneModifiedDate"}
{
:source "swirrl/validations/pmd4/SELECT_DatasetGraphContainsContents.sparql"
:type :sparql
:name "DatasetGraphContainsContents"}
{
:source "swirrl/validations/pmd4/SELECT_DatasetGraphIsIri.sparql"
:type :sparql
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
PREFIX pmdcat: <http://publishmydata.com/pmdcat#>

# pmdcat:datasetContents should either be in one of the pmdcat:graphs or the same thing

SELECT ?dataset ?contents {
?dataset a pmdcat:Dataset;
pmdcat:datasetContents ?contents;
.

FILTER NOT EXISTS {
?dataset pmdcat:graph ?graph .

GRAPH ?graph {
?contents ?p ?o .
}
}

MINUS {
?dataset pmdcat:graph ?contents
}
}