« Modèle:AppelsDB » : différence entre les versions

De Remix Biens Communs
Aller à :navigation, rechercher
Aucun résumé des modifications
Aucun résumé des modifications
Balise : wikieditor
 
(9 versions intermédiaires par le même utilisateur non affichées)
Ligne 1 : Ligne 1 :
{{#if: {{{FR|}}}|
{{#if: {{{FR|}}}|
=FR=
===FR===
<div class="row">
<div class="col-12">
{{#sparql:
prefix dc-terms: <http://purl.org/dc/terms/>
prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>
prefix skos: <http://www.w3.org/2004/02/skos/core#>
prefix owl: <http://www.w3.org/2002/07/owl#>
prefix dbp-owl: <http://dbpedia.org/ontology/>
SELECT ?Résumé
{<http://fr.dbpedia.org/resource/{{{FR}}}>  dbp-owl:abstract  ?Résumé .
FILTER (langMatches(lang(?Résumé), "fr")) .
}
|endpoint=http://fr.dbpedia.org/sparql
|footer=NO
|templates=DB_Résumé
}}
<small>Source : [http://fr.dbpedia.org/resource/{{{FR}}} http://fr.dbpedia.org/resource/{{{FR}}}]</small>
</div>
</div>
<div class="row">
<div class="row">
<div class="col-4">
<div class="col-4">
Ligne 29 : Ligne 10 :
prefix skos: <http://www.w3.org/2004/02/skos/core#>  
prefix skos: <http://www.w3.org/2004/02/skos/core#>  
prefix owl: <http://www.w3.org/2002/07/owl#>  
prefix owl: <http://www.w3.org/2002/07/owl#>  
prefix dbp-owl: <http://dbpedia.org/ontology/>  
prefix dbo: <http://dbpedia.org/ontology/>  


select ?Sujet ?sujet
select ?Sujet ?sujet
Ligne 41 : Ligne 22 :
| debug=NO
| debug=NO
| headers=
| headers=
| cache=no
| cache=yes
}}
}}
</small>
</small>
Ligne 53 : Ligne 34 :
prefix skos: <http://www.w3.org/2004/02/skos/core#>  
prefix skos: <http://www.w3.org/2004/02/skos/core#>  
prefix owl: <http://www.w3.org/2002/07/owl#>  
prefix owl: <http://www.w3.org/2002/07/owl#>  
prefix dbp-owl: <http://dbpedia.org/ontology/>  
prefix dbo: <http://dbpedia.org/ontology/>  


SELECT ?lab ?ref  
SELECT ?lab ?ref  
{<http://fr.dbpedia.org/resource/{{{FR}}}>  dbpedia-owl:wikiPageWikiLink  ?ref .
{<http://fr.dbpedia.org/resource/{{{FR}}}>  dbo:wikiPageWikiLink  ?ref .
?ref rdfs:label ?lab .
?ref rdfs:label ?lab .
FILTER(LANG(?lab) = "fr")
FILTER(LANG(?lab) = "fr")
Ligne 65 : Ligne 46 :
| footer=NO
| footer=NO
| limit=200
| limit=200
| cache=no
| cache=yes
}}
}}
</small>
</small>
Ligne 72 : Ligne 53 :
|}}
|}}
{{#if: {{{EN|}}}|
{{#if: {{{EN|}}}|
=EN=
===EN===
<div class="row">
<div class="col-4">
'''Categories (Wikipedia)'''
<small>
{{#sparql:
prefix dct: <http://purl.org/dc/terms/>
prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>
prefix skos: <http://www.w3.org/2004/02/skos/core#>
prefix owl: <http://www.w3.org/2002/07/owl#>
prefix dbo: <http://dbpedia.org/ontology/>


select ?Sujet ?sujet
{<http://dbpedia.org/resource/{{{EN}}}>  dct:subject ?sujet .
?sujet skos:prefLabel ?Sujet .
}
LIMIT 120
| endpoint=http://dbpedia.org/sparql
| templates=AdresseURL
| footer=NO
| debug=NO
| headers=
| cache=no
}}
</small>
</div>
<div class="col-8">
'''External references (Wikipedia)'''
<small>
{{#sparql:
{{#sparql:
prefix dc-terms: <http://purl.org/dc/terms/>  
prefix dc-terms: <http://purl.org/dc/terms/>  
Ligne 79 : Ligne 87 :
prefix skos: <http://www.w3.org/2004/02/skos/core#>  
prefix skos: <http://www.w3.org/2004/02/skos/core#>  
prefix owl: <http://www.w3.org/2002/07/owl#>  
prefix owl: <http://www.w3.org/2002/07/owl#>  
prefix dbp-owl: <http://dbpedia.org/ontology/>  
prefix dbo: <http://dbpedia.org/ontology/>  
SELECT ?Résumé
 
{<http://dbpedia.org/resource/{{{EN}}}>  dbp-owl:abstract  ?Résumé .
SELECT ?ref
FILTER (langMatches(lang(?Résumé), "en")) .
{<http://dbpedia.org/resource/{{{EN}}}>   dbo:wikiPageExternalLink ?ref .
}
}
|endpoint=http://dbpedia.org/sparql
| endpoint=http://dbpedia.org/sparql
|footer=NO
| headers=Reference
|templates=DB_Résumé
| classHeaders="table table-striped table-sm table-small"
| footer=NO
| limit=200
| cache=no
}}
}}
<small>Source : [http://dbpedia.org/resource/{{{EN}}} http://dbpedia.org/resource/{{{EN}}}]</small>
</small>
</div>
</div>
 
|}}
|}}


{{#if: {{{ES|}}}|
{{#if: {{{ES|}}}|
=ES=  
 
====ES====
<div class="row">
<div class="col-4">
'''Categorias (Wikipedia)'''
<small>
{{#sparql:
prefix dct: <http://purl.org/dc/terms/>
prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>
prefix skos: <http://www.w3.org/2004/02/skos/core#>
prefix owl: <http://www.w3.org/2002/07/owl#>
prefix dbo: <http://dbpedia.org/ontology/>
 
select ?Sujet ?sujet
{<http://es.dbpedia.org/resource/{{{ES}}}>  dct:subject ?sujet .
?sujet skos:prefLabel ?Sujet .
}
LIMIT 120
| endpoint=http://es.dbpedia.org/sparql
| templates=AdresseURL
| footer=NO
| debug=NO
| headers=
| cache=no
}}
</small>
</div>
<div class="col-8">
'''External links (Wikipedia)'''
<small>
{{#sparql:
{{#sparql:
prefix dc-terms: <http://purl.org/dc/terms/>  
prefix dc-terms: <http://purl.org/dc/terms/>  
Ligne 99 : Ligne 142 :
prefix owl: <http://www.w3.org/2002/07/owl#>  
prefix owl: <http://www.w3.org/2002/07/owl#>  
prefix dbo: <http://dbpedia.org/ontology/>  
prefix dbo: <http://dbpedia.org/ontology/>  
SELECT ?Résumé
 
{<http://es.dbpedia.org/resource/{{{ES}}}>  dbo:abstract  ?Résumé .
SELECT ?ref
{<http://es.dbpedia.org/resource/{{{ES}}}>  dbo:wikiPageExternalLink ?ref .
}
}
|endpoint=http://es.dbpedia.org/sparql
| endpoint=http://es.dbpedia.org/sparql
|footer=NO
| headers= Enlaces
|templates=DB_Résumé
| classHeaders="table table-striped table-sm table-small"
| footer=NO
| limit=200
| cache=no
}}
}}
<small>Source : [http://es.dbpedia.org/resource/{{{ES}}} http://es.dbpedia.org/resource/{{{ES}}}]</small>
</small>
</div>
</div>
 
|}}
|}}
<headertabs/>
<headertabs/>

Dernière version du 13 décembre 2022 à 00:57