« My first external query » : différence entre les versions
De Semantic MediaWiki - Sandbox
(chg) |
(chg) |
||
Ligne 1 : | Ligne 1 : | ||
; Configuration | |||
<syntaxhighlight lang="php"> | |||
$seqlgExternalRepositoryEndpoints = [ | |||
'semantic-mw' => [ | |||
'https://www.semantic-mediawiki.org/w/index.php/$1', | |||
'https://www.semantic-mediawiki.org/w/api.php', | |||
true | |||
] | |||
]; | |||
</syntaxhighlight> | |||
; Syntax | ; Syntax | ||
<pre> | <pre> | ||
Ligne 25 : | Ligne 35 : | ||
|limit=10 | |limit=10 | ||
}} | }} | ||
[[Category:Semantic External Query Lookup example]] | [[Category:Semantic External Query Lookup example]] |
Version du 5 janvier 2019 à 23:04
- Configuration
$seqlgExternalRepositoryEndpoints = [
'semantic-mw' => [
'https://www.semantic-mediawiki.org/w/index.php/$1',
'https://www.semantic-mediawiki.org/w/api.php',
true
]
];
- Syntax
{{#ask: [[Category:City]] [[Population::+]] |?=Name |?Population |?Area |?Average rainy days |source=semantic-mw |mainlabel=- |limit=10 }}
- Result
Name | Population | Area | Average rainy days |
---|---|---|---|
Karlsruhe | 294,761 | 124 |