Difference between revisions of "Sandbox"

From TDWG Terms Wiki
Jump to: navigation, search
m
m (Andreas Plank moved page sandbox to Sandbox over redirect: wrongly applied maintenance script cleanupCaps.php)
 
(37 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
This is Sandbox page to test things. Property test:  [[testproperty::Dummypage]]
 
This is Sandbox page to test things. Property test:  [[testproperty::Dummypage]]
  
{{#vardefineecho: graphvizRelation<!--
+
<nowiki>{{</nowiki>Draw graphviz concept relation|concept=dcterms:rights}}
-->|{{#ask: [[rdfs:subPropertyOf::{{FULLURL:{{PAGENAMEE:dcterms:rights}}}}]]|format=array|intro="{{PAGENAME:dcterms:rights}}"->"|sep="; "{{PAGENAME:dcterms:rights}}"->"|outro=";}}<!--
+
{{Draw graphviz concept relation|concept=dcterms:rights}}
-->}}<!--
+
-->{{#if: {{#var:graphvizRelation }}<!--
+
then-->|<!--
+
-->{{#tag: graphviz|_subPropertyOf{size ="4,4!";node [URL="/\N"];{{#var:graphvizRelation }}}|border="frame"|format="png"}}<!--
+
-->{{#vardefine: graphvizRelation|}}<!--
+
-->}}<!-- end if
+
-->
+
  
<graphviz border='frame' format='png'>
+
----
Hi{
+
size ="2,2!";
+
edge [color=red];
+
Hello->"World!" Hello->"World2!"
+
}
+
</graphviz>
+
  
<graphviz border='frame' format='png'>
+
Collections within [[Darwin Core]]:
digraph example2{
+
{{#ask: [[skos:inScheme::Darwin Core]] [[Class:Concept collection]]
size ="2,2!";
+
|parent=skos:inScheme
edge [color=red];
+
|format=oltree
Hello->"World!" Hello->"World2!"
+
}}
}
+
----
</graphviz>
+
  
 
{{#ask:[[skos:inScheme::+]]
 
{{#ask:[[skos:inScheme::+]]
Line 56: Line 42:
  
 
== Visualize relations ==
 
== Visualize relations ==
 
 
 
<graphviz border='frame' format='png'>
 
digraph example2{
 
size ="2,2!";
 
edge [color=red];
 
Hello->"World!" Hello->"World2!"
 
}
 
</graphviz>
 
 
  
 
<div style="width:300px;margin:0px auto;text-align:center;">
 
<div style="width:300px;margin:0px auto;text-align:center;">
Line 74: Line 49:
 
</div>
 
</div>
  
 +
=== Trees ===
 +
 +
 +
'''Note:''' the ''oltree'' format needs class/subclass or properties/subproperties to show nested relations!
 
  <nowiki>{{#ask: [[Property:+]] [[Subproperty of::~*skos:*]]</nowiki>
 
  <nowiki>{{#ask: [[Property:+]] [[Subproperty of::~*skos:*]]</nowiki>
 
  |format=oltree
 
  |format=oltree
Line 82: Line 61:
 
|parent=Subproperty of
 
|parent=Subproperty of
 
}}
 
}}
 
+
=== Graphs ===
 
  <nowiki>{{#ask: [[Property:+]] [[Subproperty of::~*skos:*]]</nowiki>
 
  <nowiki>{{#ask: [[Property:+]] [[Subproperty of::~*skos:*]]</nowiki>
 
  |?Subproperty of
 
  |?Subproperty of
 
  |format=graph
 
  |format=graph
  | graphname=test
+
  | graphname=<nowiki>{{PAGENAME}}</nowiki>digraph&lt;!-- must be this way, depending on 'named' setting in [http://www.mediawiki.org/wiki/Extension:GraphViz Extension:GraphViz] -->
 
  | graphlink=yes
 
  | graphlink=yes
 
  | arrowdirection=RL
 
  | arrowdirection=RL
 
  }}
 
  }}
{{#ask: [[Property:+]] [[Subproperty of::~*skos:*]]
+
{{#ask: [[Class:Simple Knowledge Organization System]] [[rdfs:subPropertyOf::+]]
|?Subproperty of
+
|?rdfs:subPropertyOf=
 
|format=graph
 
|format=graph
| graphname=test
 
 
| graphlink=yes
 
| graphlink=yes
 +
| graphcolor=1
 +
| graphlegend=1
 
| arrowdirection=RL
 
| arrowdirection=RL
| graphsize=1,1!
+
| nameproperty=<!-- replace the display name -->
 +
| graphsize=5,5!
 
}}
 
}}

Latest revision as of 11:09, 21 January 2020

This is Sandbox page to test things. Property test: Dummypage

{{Draw graphviz concept relation|concept=dcterms:rights}}



Collections within Darwin Core:

  1. Darwin Core Event
  2. Darwin Core FossilSpecimen
  3. Darwin Core GeologicalContext
  4. Darwin Core HumanObservation
  5. Darwin Core Identification
  6. Darwin Core LivingSpecimen
  7. Darwin Core Location
  8. Darwin Core MachineObservation
  9. Darwin Core Material Sample
  10. Darwin Core Measurement or Fact
  11. Darwin Core Occurrence
  12. Darwin Core Organism
  13. Darwin Core PreservedSpecimen
  14. Darwin Core Record-level Terms
  15. Darwin Core Resource Relationship
  16. Darwin Core Taxon

Visualize relations

skos:hiddenLabel

owl: disjoint with

skos:prefLabel skos:altLabel

Trees

Note: the oltree format needs class/subclass or properties/subproperties to show nested relations!

{{#ask: [[Property:+]] [[Subproperty of::~*skos:*]]
|format=oltree
|parent=Subproperty of
}}
  1. skos:scopeNote
  2. skos:broadMatch
  3. skos:broaderTransitive
  4. skos:changeNote
  5. skos:definition
  6. skos:editorialNote
  7. skos:example
  8. skos:mappingRelation
    1. skos:broadMatch
    2. skos:closeMatch
    3. skos:narrowMatch
    4. skos:relatedMatch
  9. skos:narrowerTransitive
    1. skos:narrower
      1. skos:narrowMatch
  10. skos:related
    1. skos:relatedMatch

Graphs

{{#ask: [[Property:+]] [[Subproperty of::~*skos:*]]
|?Subproperty of
|format=graph
| graphname={{PAGENAME}}digraph<!-- must be this way, depending on 'named' setting in Extension:GraphViz -->
| graphlink=yes
| arrowdirection=RL
}}
  
skos:altLabelhttp://terms.tdwg.org/wiki/rdfs:label
skos:broadMatchhttp://terms.tdwg.org/wiki/skos:mappingRelation
http://terms.tdwg.org/wiki/skos:broader
skos:broaderTransitivehttp://terms.tdwg.org/wiki/skos:semanticRelation
skos:changeNotehttp://terms.tdwg.org/wiki/skos:note
skos:closeMatchhttp://terms.tdwg.org/wiki/skos:mappingRelation
skos:definitionhttp://terms.tdwg.org/wiki/skos:note
skos:editorialNotehttp://terms.tdwg.org/wiki/skos:note
skos:examplehttp://terms.tdwg.org/wiki/skos:note
skos:hiddenLabelhttp://terms.tdwg.org/wiki/rdfs:label
skos:historyNotehttp://www.w3.org/2004/02/skos/core#note
skos:historyNotehttp://www.w3.org/2004/02/skos/core#note
skos:inSchemehttp://terms.tdwg.org/wiki/owl:ObjectProperty
skos:mappingRelationhttp://terms.tdwg.org/wiki/skos:semanticRelation
skos:narrowMatchhttp://terms.tdwg.org/wiki/skos:mappingRelation
http://terms.tdwg.org/wiki/skos:narrower
skos:narrowerhttp://terms.tdwg.org/wiki/skos:narrowerTransitive
skos:narrowerTransitivehttp://terms.tdwg.org/wiki/skos:semanticRelation
skos:prefLabelhttp://terms.tdwg.org/wiki/rdfs:label
skos:relatedhttp://terms.tdwg.org/wiki/skos:semanticRelation
skos:relatedMatchhttp://terms.tdwg.org/wiki/skos:mappingRelation
http://terms.tdwg.org/wiki/skos:related
skos:scopeNotehttp://terms.tdwg.org/wiki/skos:note