Template:Workflow: Difference between revisions

From MaRDI portal
T4 reidelbach (talk | contribs)
T4 reidelbach (talk | contribs)
 
(21 intermediate revisions by the same user not shown)
Line 158: Line 158:
       (GROUP_CONCAT(DISTINCT ?outputLink; separator=", ") AS ?Output)
       (GROUP_CONCAT(DISTINCT ?outputLink; separator=", ") AS ?Output)
       (GROUP_CONCAT(DISTINCT ?methodLink; separator=", ") AS ?Method)
       (GROUP_CONCAT(DISTINCT ?methodLink; separator=", ") AS ?Method)
       (GROUP_CONCAT(DISTINCT ?environmentLabel; separator=", ") AS ?Environment)
       (GROUP_CONCAT(DISTINCT ?environmentLink; separator=", ") AS ?Environment)
       (GROUP_CONCAT(DISTINCT ?disciplineLink; separator=", ") AS ?Discipline)
       (GROUP_CONCAT(DISTINCT ?disciplineLink; separator=", ") AS ?Discipline)


Line 221: Line 221:
     ?environmentID rdfs:label ?environmentLabel.
     ?environmentID rdfs:label ?environmentLabel.
     FILTER (lang(?environmentLabel) = 'en')
     FILTER (lang(?environmentLabel) = 'en')
    BIND(replace( xsd:string(?environmentID),
      'https://portal.mardi4nfdi.de/entity/',
      '') as ?environmentQID)
    BIND (CONCAT('<a href=\'/wiki/Item:',?environmentQID,'\'>',?environmentLabel,'</a>') as ?environmentLink)
   }
   }
    
    
Line 245: Line 249:
}}
}}
</div>
</div>
=== Applied methods ===
 
=== Algorithms ===
<div class='no-pagination no-filter'>
<div class='no-pagination no-filter'>
{{#sparql:
{{#sparql:
Line 258: Line 263:
   wd:{{#invoke:Wd|label|raw|}} p:P557 ?mainStatement.
   wd:{{#invoke:Wd|label|raw|}} p:P557 ?mainStatement.
   ?mainStatement ps:P557 ?methodID.  
   ?mainStatement ps:P557 ?methodID.  
   ?methodID wdt:P31 wd:Q68669.
   ?methodID wdt:P31 wd:Q127020.
   ?methodID rdfs:label ?NameLabel.               
   ?methodID rdfs:label ?NameLabel.               
   FILTER (lang(?NameLabel) = 'en')
   FILTER (lang(?NameLabel) = 'en')
Line 303: Line 308:
</div>
</div>


=== Software used ===
=== Software ===
<div class='no-pagination no-filter'>
<div class='no-pagination no-filter'>
{{#sparql:
{{#sparql:
SELECT ?ID
SELECT ?Name
      ?Name
       ?Description
       ?Description
       ?Version
       ?Version
       (GROUP_CONCAT(DISTINCT ?plLink; separator=", ") AS ?ProgrammingLanguage)
       (GROUP_CONCAT(DISTINCT ?plLink; separator=", ") AS ?Programming_Language)
       (GROUP_CONCAT(DISTINCT ?dpLink; separator=", ") AS ?Dependencies)
       (GROUP_CONCAT(DISTINCT ?dpLink; separator=", ") AS ?Dependencies)
       ?versioned
       ?versioned
Line 388: Line 392:
<div class='no-pagination no-filter'>
<div class='no-pagination no-filter'>
{{#sparql:
{{#sparql:
SELECT ?ID
SELECT ?Name
      ?Name
       ?Description
       ?Description
       (GROUP_CONCAT(DISTINCT ?processorLink; separator=", ") AS ?Processor)
       (GROUP_CONCAT(DISTINCT ?processorLink; separator=", ") AS ?Processor)
       (GROUP_CONCAT(DISTINCT ?nodes; separator=", ") AS ?NumberOfNodes)
       (GROUP_CONCAT(DISTINCT ?nodes; separator=", ") AS ?Node_Number)
       (GROUP_CONCAT(DISTINCT ?cores; separator=", ") AS ?NumberOfCores)
       (GROUP_CONCAT(DISTINCT ?cores; separator=", ") AS ?Core_Number)
        
        
WHERE {
WHERE {
Line 440: Line 443:
</div>
</div>


=== Input data ===
=== Data Sets ===
<div class="no-pagination no-filter">  
<div class="no-pagination no-filter">  
{{#sparql:
{{#sparql:
SELECT ?ID
SELECT ?Name
       ?Name
       ?Description
       ?Size
       ?Size
       ?DataStructure
       (?DataType AS ?Data_Type)
       ?ExchangeFormat
       (?RepresentationFormat AS ?Representation_Format)
       ?BinaryOrText
       (?FileFormat AS ?File_Format)
      (?BinaryOrText AS ?Binary_Text)
       ?Proprietary
       ?Proprietary
       ?toPublish
       (?toPublish AS ?to_Publish)
       ?toArchive
       (?toArchive AS ?to_Archive)
        
        
WHERE {
WHERE {
Line 462: Line 466:
   # Get Data
   # Get Data
   OPTIONAL {
   OPTIONAL {
     ?stepID wdt:P1605 ?inputID.
     {?stepID wdt:P1605 ?inputID.}
    UNION
    {?stepID wdt:P1606 ?inputID.}
     ?inputID rdfs:label ?NameLabel.
     ?inputID rdfs:label ?NameLabel.
     FILTER (lang(?NameLabel) = 'en')
     FILTER (lang(?NameLabel) = 'en')
Line 472: Line 478:
     BIND(CONCAT('mardi:','<a href=\'/wiki/Item:',?qid,'\'>',?qid,'</a>') as ?ID)
     BIND(CONCAT('mardi:','<a href=\'/wiki/Item:',?qid,'\'>',?qid,'</a>') as ?ID)
     BIND(CONCAT('<a href=\'/wiki/Item:',?qid,'\'>',?NameLabel,'</a>') as ?Name)
     BIND(CONCAT('<a href=\'/wiki/Item:',?qid,'\'>',?NameLabel,'</a>') as ?Name)
  OPTIONAL {
    ?inputID schema:description ?Description.
    FILTER (lang(?Description) = 'en')}


   # Data Size (maps to Size if File etc size is provided)
   # Data Size (maps to Size if File etc size is provided)
Line 484: Line 494:
}
}
    
    
   # Number of Records (maps to Size if Number of Entries in a Database etc is provided=
   # Number of Records (maps to Size if Number of Entries in a Database etc is provided
   OPTIONAL {
   OPTIONAL {
     ?inputID wdt:P139 ?Sizeraw
     ?inputID wdt:P139 ?Sizeraw
Line 490: Line 500:
   }
   }
    
    
   # Data Structure
   # Data Type
  OPTIONAL {
    ?inputID p:P557 ?statement_dt.
    ?statement_dt ps:P557 ?datatypeID.
    ?statement_dt pq:P560 ?qualifier.
    FILTER (?qualifier = wd:Q78802)
    ?datatypeID rdfs:label ?datatypeLabel. 
    FILTER (lang(?datatypeLabel) = 'en')
    BIND(replace( xsd:string(?datatypeID),
        'https://portal.mardi4nfdi.de/entity/',
        '') as ?datatypeQID) 
 
    BIND (CONCAT('<a href=\'/wiki/Item:',?datatypeQID,'\'>',?datatypeLabel,'</a>') as ?DataType)
    }
   
  # Representation Format
   OPTIONAL {
   OPTIONAL {
     ?inputID wdt:P1193 ?DataStructure
     ?inputID p:P557 ?statement_rf.
    ?statement_rf ps:P557 ?representationID.
    ?statement_rf pq:P560 ?qualifier2.
    FILTER (?qualifier2 = wd:Q6534222)
    ?representationID rdfs:label ?representationLabel. 
    FILTER (lang(?representationLabel) = 'en')
    BIND(replace( xsd:string(?representationID),
        'https://portal.mardi4nfdi.de/entity/',
        '') as ?representationQID) 
 
    BIND (CONCAT('<a href=\'/wiki/Item:',?representationQID,'\'>',?representationLabel,'</a>') as ?RepresentationFormat)
     }
     }
      
      
   # Exchange Format
   # File Format
   OPTIONAL {
   OPTIONAL {
     ?inputID wdt:P921 ?ExchangeFormat
     ?inputID wdt:P921 ?FileFormat
     }
     }
    
    
Line 545: Line 580:
      
      
   }
   }
} GROUP BY ?ID ?Name ?Size ?DataStructure ?ExchangeFormat ?BinaryOrText ?Proprietary ?toPublish ?toArchive
} GROUP BY ?ID ?Name ?Description ?Size ?DataType ?RepresentationFormat ?FileFormat ?BinaryOrText ?Proprietary ?toPublish ?toArchive
 
| chart=bordercloud.visualization.DataTable
| options=width=100%!
| endpoint=https://query.portal.mardi4nfdi.de/proxy/wdqs/bigdata/namespace/wdq/sparql
}}
</div>
 
=== Output data ===
<div class="no-pagination no-filter">
{{#sparql:
SELECT ?ID
      ?Name
      ?Size
      ?DataStructure
      ?ExchangeFormat
      ?BinaryOrText
      ?Proprietary
      ?toPublish
      ?toArchive
     
WHERE {
 
  # Get Step
  wd:{{#invoke:Wd|label|raw|}} p:P557 ?mainStatement.
  ?mainStatement ps:P557 ?stepID.
  ?stepID wdt:P31 wd:Q6486603.           
 
  # Get Data
  OPTIONAL {
    ?stepID wdt:P1606 ?outputID.
    ?outputID rdfs:label ?NameLabel.
    FILTER (lang(?NameLabel) = 'en')
   
    BIND(replace( xsd:string(?outputID),
      '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)
 
  # Data Size (maps to Size if File etc size is provided)
  OPTIONAL {
    ?outputID p:P1542 ?statementNode.         
    ?statementNode psv:P1542 ?valueNode.     
    ?valueNode wikibase:quantityAmount ?size;
              wikibase:quantityUnit ?unit.
    ?unit rdfs:label ?unitlabel.
    FILTER (lang(?unitlabel) = 'en')
    BIND(CONCAT(STR(?size), ' ', STR(?unitlabel)) AS ?Size)
}
 
  # Number of Records (maps to Size if Number of Entries in a Database etc is provided=
  OPTIONAL {
    ?outputID wdt:P139 ?Sizeraw
    BIND(CONCAT(STR(?Sizeraw),' Items') as ?Size)
  }
 
  # Data Structure
  OPTIONAL {
    ?outputID wdt:P1193 ?DataStructure
    }
   
  # Exchange Format
  OPTIONAL {
    ?outputID wdt:P921 ?ExchangeFormat
    }
 
  # Binary or Text
  BIND(IF(EXISTS { ?outputID wdt:P31 wd:Q6480276 }, "binary", IF(EXISTS { ?outputID wdt:P31 wd:Q6534207 }, "text", "" )) AS ?BinaryOrText)
 
  # Proprietary
  BIND(IF(EXISTS { ?outputID wdt:P31 wd:Q6480367 }, "yes", IF(EXISTS { ?outputID wdt:P31 wd:Q6480313 }, "no", "" )) AS ?Proprietary)
 
  # Bind DOI and URL if they exist
  OPTIONAL { ?outputID wdt:P23 ?doi. }
  OPTIONAL { ?outputID wdt:P188 ?url. }
 
  # Data Publishing
  BIND(
  IF(EXISTS { ?outputID wdt:P1563 wd:Q6480291 },
    IF(EXISTS { ?outputID wdt:P27 ?doi },
        CONCAT('<a href="', 'https://dx.doi.org', STR(?doi), '">yes</a>'),
        IF(EXISTS { ?outputID wdt:P188 ?url },
          CONCAT('<a href="', STR(?url), '">yes</a>'),
          "yes"
        )
    ),
    "no"
  ) AS ?toPublish
)
 
# Data Archiving
 
  OPTIONAL {
  ?outputID p:P1563 ?statementNode.
  ?statementNode ps:P1563 wd:Q6480370.
  OPTIONAL {
    ?statementNode pq:P411 ?endTime.
  }
}
 
BIND(
  IF(BOUND(?statementNode),
    IF(BOUND(?endTime),
        SUBSTR(STR(?endTime), 1, 4),
        "yes"
    ),
    "no"
  ) AS ?toArchive
)
   
  }
} GROUP BY ?ID ?Name ?Size ?DataStructure ?ExchangeFormat ?BinaryOrText ?Proprietary ?toPublish ?toArchive


| chart=bordercloud.visualization.DataTable
| chart=bordercloud.visualization.DataTable
Line 672: Line 594:
       ?Runtime
       ?Runtime
       ?Result
       ?Result
       ?OriginalPlatform
       (?OriginalPlatform AS ?Original_Platform)
       ?CrossPlatform
       (?CrossPlatform AS ?Cross_Platform)
       ?Transferability
       ?Transferability
        
        

Latest revision as of 10:28, 6 January 2025


Available identifiers

Problem statement

Object of research and objective

Involved disciplines

    Model

    Variables

    Parameters

    Process information

    Process steps

    Algorithms

    Software

    Hardware

    Data Sets

    Reproducibility