Template:Workflow: Difference between revisions
From MaRDI portal
No edit summary |
|||
Line 215: | Line 215: | ||
=== Hardware === | === Hardware === | ||
{{#sparql: | |||
SELECT ?ID | |||
?Name | |||
?Description | |||
WHERE { | |||
# Get Hardware Label and Description | |||
wd:{{#invoke:Wd|label|raw|}} p:P557 ?mainStatement. | |||
?mainStatement ps:P557 ?hardwareID. | |||
?hardwareID wdt:P31 wd:Q56583. | |||
?hardwareID rdfs:label ?NameLabel. | |||
FILTER (lang(?NameLabel) = 'en') | |||
BIND(replace( xsd:string(?hardwareID), | |||
'https://portal.mardi4nfdi.de/entity/', | |||
'') as ?qid) | |||
BIND (CONCAT('mardi:','<a href=\'/wiki/Item:',?qid,'\'>',?qid,'</a>') as ?ID) | |||
BIND (CONCAT('<a href=\'/wiki/Item:',?qid,'\'>',?NameLabel,'</a>') as ?Name) | |||
OPTIONAL { | |||
?hardwareID schema:description ?Description. | |||
FILTER (lang(?Description) = 'en') | |||
} | |||
} | |||
GROUP BY ?ID ?Name ?Description ?Version | |||
| chart=bordercloud.visualization.DataTable | |||
| options=width=100%! | |||
}} | |||
=== Input data === | === Input data === | ||
=== Output data === | === Output data === |
Revision as of 08:46, 28 October 2024