Skip to content

Commit

Permalink
Relaxed Workflow RO-Crate profile detection , in order to circumvent …
Browse files Browse the repository at this point in the history
…issue #124 .
  • Loading branch information
jmfernandez committed Oct 16, 2024
1 parent c333965 commit 61fd06a
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions wfexs_backend/utils/rocrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,10 +398,23 @@ def __init__(self, wfexs: "WfExSBackend"):
STRSTARTS(str(?rocrateprofile), str(rocrate:))
) .
OPTIONAL {
?rocratejson dcterms:conformsTo ?wfcrateprofile .
FILTER (
?wfcrateprofile = wfhprofile: || STRSTARTS(str(?wfcrateprofile), str(wfcrate:))
) .
{
FILTER NOT EXISTS {
?rocratejson dcterms:conformsTo ?somewfcrateprofile .
FILTER (
?somewfcrateprofile = wfhprofile: || STRSTARTS(str(?somewfcrateprofile), str(wfcrate:))
) .
}
?rootdataset dcterms:conformsTo ?wfcrateprofile .
FILTER (
?wfcrateprofile = wfhprofile: || STRSTARTS(str(?wfcrateprofile), str(wfcrate:))
) .
} UNION {
?rocratejson dcterms:conformsTo ?wfcrateprofile .
FILTER (
?wfcrateprofile = wfhprofile: || STRSTARTS(str(?wfcrateprofile), str(wfcrate:))
) .
}
OPTIONAL {
?rootdataset
s:mainEntity ?mainentity .
Expand Down

0 comments on commit 61fd06a

Please sign in to comment.