Difference between revisions of "Template:Concept scheme/RDF resource link"

From TDWG Terms Wiki
Jump to: navigation, search
(added skos:exactMatch for export)
m (fix extracting the link)
Line 1: Line 1:
<includeonly>{{#sub:<!-- remove first [ of the generated RDF link
+
<includeonly>{{#explode:<!--
  -->{{#explode:<!-- get only the RDF resource link
+
  cut after link before " "
    -->{{#ask: <q>[[Category: {{#if: {{{1|}}}| {{{1|}}} | {{PAGENAME}} }}]] [[Category:Concept]]</q> OR [[{{#if: {{{1|}}}| {{{1|}}} | {{PAGENAME}} }}]]
+
-->{{#explode:<!--
 +
  cut after "["
 +
-->{{#ask: <q>[[Category: {{#if: {{{1|}}}| {{{1|}}} | {{PAGENAME}} }}]] [[Category:Concept]]</q> OR [[{{#if: {{{1|}}}| {{{1|}}} | {{PAGENAME}} }}]]
 
           |?Class
 
           |?Class
 
           |?Modification date
 
           |?Modification date
Line 38: Line 40:
 
           |format=rdf
 
           |format=rdf
 
           }}<!-- #ask
 
           }}<!-- #ask
-->| |0}}<!-- #explode
+
  -->|[|1}}<!-- #explode [ at ------v
-->|1}}<!-- #sub
+
                  <span class="...">[URL
--></includeonly><noinclude>
+
-->| |0}}<!-- #explode ' ' at ------v
 +
                      F%29&offset=0 Combined query of #ask (RDF)
 +
--></includeonly><noinclude>
 
Generates a RDF resource link for exporting a whole [[Template:Concept scheme|concept scheme]]. Parameter of the template:
 
Generates a RDF resource link for exporting a whole [[Template:Concept scheme|concept scheme]]. Parameter of the template:
 
: <code>1 =</code> (optional) another concept scheme page name specified to export from (if this is not given then <nowiki>{{PAGENAME}}</nowiki> is assumed)
 
: <code>1 =</code> (optional) another concept scheme page name specified to export from (if this is not given then <nowiki>{{PAGENAME}}</nowiki> is assumed)

Revision as of 13:13, 2 April 2016

Generates a RDF resource link for exporting a whole concept scheme. Parameter of the template:

1 = (optional) another concept scheme page name specified to export from (if this is not given then {{PAGENAME}} is assumed)

The #ask query exports the following parameter:

|?Class
|?Modification date
|?concept type
|?dc:identifier
|?dc:publisher
|?dwcattributes:abcdEquivalence
|?dcterms:bibliographicCitation
|?dcterms:contributor
|?dcterms:description
|?dcterms:identifier
|?dcterms:issued
|?dcterms:modified
|?dcterms:replaces
|?dcterms:title
|?rdfs:isDefinedBy
|?rdfs:subPropertyOf
|?sioc:has_discussion
|?skos:altLabel
|?skos:closeMatch
|?skos:exactMatch
|?skos:definition
|?skos:broader
|?skos:narrower
|?skos:example
|?skos:inScheme
|?skos:prefLabel
|?terms-internal:isDefinedBy
|?vann:preferredNamespacePrefix
|?vann:preferredNamespaceUri
|?vann:termGroup
|?vann:usageNote
|?vs:term status

… and generates the resource RDF link for Darwin Core:

https://terms.tdwg.org/w/index.php?title=Special:Ask&x=-3Cq-3E-5B-5BCategory%3A-20Darwin-20Core-5D-5D-20-5B-5BCategory%3AConcept-5D-5D-3C-2Fq-3E-20OR-20-5B-5BDarwin-20Core-5D-5D%2F-3FClass%2F-3FModification-20date%2F-3Fconcept-20type%2F-3Fdc%3Aidentifier%2F-3Fdc%3Apublisher%2F-3Fdwcattributes%3AabcdEquivalence%2F-3Fdcterms%3AbibliographicCitation%2F-3Fdc%3Acontributor%2F-3Fdc%3Acreator%2F-3Fdc%3Adescription%2F-3Fdcterms%3Aidentifier%2F-3Fdcterms%3Aissued%2F-3Fdcterms%3Amodified%2F-3Fdcterms%3Areplaces%2F-3Fdcterms%3Atitle%2F-3Frdfs%3AisDefinedBy%2F-3Frdfs%3AsubPropertyOf%2F-3Fsioc%3Ahas-20discussion%2F-3Fskos%3AaltLabel%2F-3Fskos%3AcloseMatch%2F-3Fskos%3AexactMatch%2F-3Fskos%3Adefinition%2F-3Fskos%3Abroader%2F-3Fskos%3Anarrower%2F-3Fskos%3Aexample%2F-3Fskos%3AinScheme%2F-3Fskos%3AprefLabel%2F-3Fterms-2Dinternal%3AisDefinedBy%2F-3Fvann%3ApreferredNamespacePrefix%2F-3Fvann%3ApreferredNamespaceUri%2F-3Fvann%3AtermGroup%2F-3Fvann%3AusageNote%2F-3Fvs%3Aterm-20status&format=rdf&limit=197&searchlabel=Combined%20query%20of%20%23ask%20%28RDF%29&offset=0