Template:Workflow: Difference between revisions
From MaRDI portal
No edit summary |
|||
Line 46: | Line 46: | ||
PREFIX mdb: <https://mardi4nfdi.de/mathmoddb#> | PREFIX mdb: <https://mardi4nfdi.de/mathmoddb#> | ||
SELECT ? | SELECT ?itemLabel ?Type ?taskLabel WHERE { | ||
wd:{{#invoke:Wd|label|raw|}} wdt:P557 ?item . | wd:{{#invoke:Wd|label|raw|}} wdt:P557 ?item . | ||
?item wdt:P31 wd:Q68663; | ?item wdt:P31 wd:Q68663; | ||
Line 52: | Line 52: | ||
rdfs:label ?Label. | rdfs:label ?Label. | ||
SERVICE <https://sparql.mtsr2024.m1.mardi.ovh/mathalgodb/query> { | SERVICE <https://sparql.mtsr2024.m1.mardi.ovh/mathalgodb/query> { | ||
?url mdb:appliedByTask ? | ?url mdb:appliedByTask ?task. | ||
? | ?task rdfs:label ?taskLabel. | ||
? | # For items connected via containsInput (independent) | ||
? | { | ||
? | ?task mdb:containsInput ?item . | ||
?item rdfs:label ?itemLabel . | |||
BIND("independent" AS ?Type) | |||
} | |||
? | UNION | ||
# For items connected via containsOutput (dependent) | |||
{ | |||
?task mdb:containsOutput ?item . | |||
?item rdfs:label ?itemLabel . | |||
BIND("dependent" AS ?Type) | BIND("dependent" AS ?Type) | ||
} | |||
} | |||
ORDER BY ?taskLabel ?itemLabel | |||
} | } | ||
| chart=bordercloud.visualization.DataTable | | chart=bordercloud.visualization.DataTable | ||
}} | }} | ||
</div> | </div> | ||
== Process information == | == Process information == |
Revision as of 18:29, 29 October 2024