Template:Workflow: Difference between revisions
From MaRDI portal
Line 46: | Line 46: | ||
PREFIX mdb: <https://mardi4nfdi.de/mathmoddb#> | PREFIX mdb: <https://mardi4nfdi.de/mathmoddb#> | ||
SELECT ? | SELECT ?Name ?Symbol ?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 65: | Line 65: | ||
BIND("dependent" AS ?Type) | BIND("dependent" AS ?Type) | ||
} | } | ||
OPTIONAL { | |||
?formulation mdb:containsQuantity ?itemX ; | |||
mdb:containedAsFormulationIn ?task. | |||
?formulation mdb:inDefiningFormulation ?definingStatement . | |||
BIND(STRBEFORE(?definingStatement, ",") AS ?Symbol) | |||
BIND(STRAFTER(?definingStatement, ", ") AS ?quantityLabel) | |||
} | |||
FILTER(?quantityLabel = ?itemLabel) | |||
} | } | ||
Revision as of 18:59, 29 October 2024