Project:DMV-Talk: Difference between revisions

From MaRDI portal
Created page with "<syntaxhighlight lang=SPARQL> PREFIX wdt: <https://portal.mardi4nfdi.de/prop/direct/> PREFIX wd: <https://portal.mardi4nfdi.de/entity/> SELECT (?dep2nd as ?qId) ?dlmfid ?definesLabel ?formula WHERE { ?item wdt:P4 wd:Q1818 . ?item wdt:P3 ?defines . ?dep2nd wdt:P4 ?defines FILTER( NOT EXISTS { ?dep2nd wdt:P4 wd:1818.}) OPTIONAL{?dep2nd wdt:P2 ?dlmfid .} OPTIONAL{?dep2nd wdt:P14 ?formula .} SERVICE wikibase:label..."
 
No edit summary
Line 1: Line 1:
<syntaxhighlight lang=SPARQL>
{{SPARQL|query=
 
PREFIX wdt: <https://portal.mardi4nfdi.de/prop/direct/>
PREFIX wd: <https://portal.mardi4nfdi.de/entity/>
 
SELECT (?dep2nd as ?qId) ?dlmfid ?definesLabel ?formula
WHERE {
  ?item wdt:P4 wd:Q1818 .
        ?item wdt:P3 ?defines .
      ?dep2nd wdt:P4 ?defines
      FILTER( NOT EXISTS { ?dep2nd wdt:P4 wd:1818.})
        OPTIONAL{?dep2nd wdt:P2 ?dlmfid .}
                OPTIONAL{?dep2nd wdt:P14 ?formula .}     
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
 
      }
Limit 10
</syntaxhighlight>
{{#sparql:


PREFIX wdt: <https://portal.mardi4nfdi.de/prop/direct/>
PREFIX wdt: <https://portal.mardi4nfdi.de/prop/direct/>

Revision as of 11:40, 24 September 2023

PREFIX wdt: <https://portal.mardi4nfdi.de/prop/direct/>
PREFIX wd: <https://portal.mardi4nfdi.de/entity/>

SELECT (?dep2nd as ?qId) ?dlmfid ?definesLabel ?formula
WHERE {
  ?item wdt:P4 wd:Q1818 .
         ?item wdt:P3 ?defines .
       ?dep2nd wdt:P4 ?defines 
       FILTER( NOT EXISTS { ?dep2nd wdt:P4 wd:1818.})
         OPTIONAL{?dep2nd wdt:P2 ?dlmfid .}
                OPTIONAL{?dep2nd wdt:P14 ?formula .}      
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }

      }
Limit 10
Try it!