Template:Workflow: Difference between revisions

From MaRDI portal
No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 85: Line 85:
              
              
             BIND(REPLACE(?Symbolraw, "\\$", "") AS ?cleanSymbol)
             BIND(REPLACE(?Symbolraw, "\\$", "") AS ?cleanSymbol)
             BIND(CONCAT(<math>, ?cleanSymbol, </math>) AS ?Symbol)
             BIND(CONCAT('<a href="/">', ?cleanSymbol, '</a>') AS ?Symbol)
            
            
         }
         }

Revision as of 11:57, 31 October 2024


Available identifiers

Problem statement

Object of research and objective

Involved disciplines

    Model

    Variables

    Sorry, the SPARQL server sent an error. (see details with parameter log=2)

    Error #sparql :Error query  : PREFIX mdb: <https://mardi4nfdi.de/mathmoddb#>
    SELECT ?Name ?Unit ?Symbol ?Task (?Type AS ?Dependency_Type) WHERE {
       
       wd: wdt:P557 ?centralItem .
       ?centralItem wdt:P31 wd:Q68663;
                    wdt:P188 ?url;
                    rdfs:label ?Label.
    
       
       SERVICE <https://sparql.mtsr2024.m1.mardi.ovh/mathalgodb/query> {
            ?url mdb:appliedByTask ?task .
            ?task rdfs:label ?Task .
            
            
            {
                ?task mdb:containsInput ?item .
                ?item rdfs:label ?Name .
                BIND("independent" AS ?Type)
            }
            UNION
            {
                ?task mdb:containsOutput ?item .
                ?item rdfs:label ?Name .
                BIND("dependent" AS ?Type)
            }
            
            
            OPTIONAL {
                ?task mdb:containsFormulation ?formulation .
                ?formulation mdb:inDefiningFormulation ?definingStatement .
    
                
                BIND(STR(?definingStatement) AS ?plainStatement)
    
                
                BIND(REPLACE(?plainStatement, "\\s*,\\s*", ",") AS ?cleanedStatement)
    
                
                BIND(STRBEFORE(?cleanedStatement, ",") AS ?Symbolraw)
                BIND(STRAFTER(?cleanedStatement, ",") AS ?quantityLabel)
                
                BIND(REPLACE(?Symbolraw, "\\$", "") AS ?cleanSymbol)
                BIND(CONCAT('<a href="/">', ?cleanSymbol, '</a>') AS ?Symbol)
               
            }
            BIND(STR(?Name) AS ?plainItemLabel)
            FILTER(?quantityLabel = ?plainItemLabel)       
            
        }
        
        BIND("" AS ?Unit)
    }
    ORDER BY ?taskLabel ?itemLabel
    Error endpoint: https://query.portal.mardi4nfdi.de/proxy/wdqs/bigdata/namespace/wdq/sparql
    Error http_response_code: 0
    Error message: Error (see log)
    Error number: 7
    Error message: Failed to connect to query.portal.mardi4nfdi.de port 443 after 0 ms: Couldn't connect to server
    
    Error data: Array
    (
        [query] => PREFIX mdb: <https://mardi4nfdi.de/mathmoddb#>
    SELECT ?Name ?Unit ?Symbol ?Task (?Type AS ?Dependency_Type) WHERE {
       
       wd: wdt:P557 ?centralItem .
       ?centralItem wdt:P31 wd:Q68663;
                    wdt:P188 ?url;
                    rdfs:label ?Label.
    
       
       SERVICE <https://sparql.mtsr2024.m1.mardi.ovh/mathalgodb/query> {
            ?url mdb:appliedByTask ?task .
            ?task rdfs:label ?Task .
            
            
            {
                ?task mdb:containsInput ?item .
                ?item rdfs:label ?Name .
                BIND("independent" AS ?Type)
            }
            UNION
            {
                ?task mdb:containsOutput ?item .
                ?item rdfs:label ?Name .
                BIND("dependent" AS ?Type)
            }
            
            
            OPTIONAL {
                ?task mdb:containsFormulation ?formulation .
                ?formulation mdb:inDefiningFormulation ?definingStatement .
    
                
                BIND(STR(?definingStatement) AS ?plainStatement)
    
                
                BIND(REPLACE(?plainStatement, "\\s*,\\s*", ",") AS ?cleanedStatement)
    
                
                BIND(STRBEFORE(?cleanedStatement, ",") AS ?Symbolraw)
                BIND(STRAFTER(?cleanedStatement, ",") AS ?quantityLabel)
                
                BIND(REPLACE(?Symbolraw, "\\$", "") AS ?cleanSymbol)
                BIND(CONCAT('<a href="/">', ?cleanSymbol, '</a>') AS ?Symbol)
               
            }
            BIND(STR(?Name) AS ?plainItemLabel)
            FILTER(?quantityLabel = ?plainItemLabel)       
            
        }
        
        BIND("" AS ?Unit)
    }
    ORDER BY ?taskLabel ?itemLabel
        [output] => xml
        [Accept] => application/sparql-results+xml
    )
    
    

    Parameters

    Process information

    Process steps

    Applied methods

    Software used

    Hardware

    Input data

    Output data