Template:Workflow: Difference between revisions
From MaRDI portal
No edit summary |
|||
Line 55: | Line 55: | ||
SERVICE <https://sparql.mtsr2024.m1.mardi.ovh/mathalgodb/query> { | SERVICE <https://sparql.mtsr2024.m1.mardi.ovh/mathalgodb/query> { | ||
?url mdb:appliedByTask ?task . | ?url mdb:appliedByTask ?task . | ||
?task rdfs:label ? | ?task rdfs:label ?Task . | ||
# Define type based on connection type (Input or Output) | # Define type based on connection type (Input or Output) | ||
{ | { | ||
?task mdb:containsInput ?item . | ?task mdb:containsInput ?item . | ||
?item rdfs:label ? | ?item rdfs:label ?Name . | ||
BIND("independent" AS ?Type) | BIND("independent" AS ?Type) | ||
} | } | ||
Line 66: | Line 66: | ||
{ | { | ||
?task mdb:containsOutput ?item . | ?task mdb:containsOutput ?item . | ||
?item rdfs:label ? | ?item rdfs:label ?Name . | ||
BIND("dependent" AS ?Type) | BIND("dependent" AS ?Type) | ||
} | } | ||
Line 86: | Line 86: | ||
} | } | ||
# Filter results to only show defining statements that match the current quantity label | # Filter results to only show defining statements that match the current quantity label | ||
BIND(STR(? | BIND(STR(?Name) AS ?plainItemLabel) | ||
FILTER(?quantityLabel = ?plainItemLabel) | FILTER(?quantityLabel = ?plainItemLabel) | ||
} | } |
Revision as of 20:02, 29 October 2024