Template talk:Property setting

From TDWG Terms Wiki
Revision as of 14:10, 9 October 2012 by Andreas Plank (Talk | contribs) (included discussion from Template talk:Property setting/doc)

Jump to: navigation, search

To gather pages automatically there are many possibilities. What possibility is most suitable?

  1. set «Class:Imported vocabulary “prefix”»
  2. set «Class:Use title as class»
  3. additional parameter in the template, |categories=cat1 (may have multiple categories)
  4. additional parameter in the template, |category=cat (can have only one category)

--Andreas Plank 11:38, 25 September 2012 (CEST)

I added parameter “categories” --Andreas Plank 11:05, 28 September 2012 (CEST)

Parameter

“title”, “label”

Technically I use “title” to pass it on to all other formlink titles in the tool box. It is meant to be a general title, not like label. On page Property:dwc:year the title can be “Darwin Core Term” or “Darwin Core Vocabulary” but should not have a title “Year”, the Wiki title is already “dwc:year”. Does it make sense or do I use parameter “title” in a wrong sense? --Andreas Plank 12:33, 28 September 2012 (CEST)

When I see the input for Title on the "Property:dwc:year" page, I think of the title for that individual resource and not a general category such as "Darwin Core term". I am not sure what is meant by pass it on to other formlink titles...? --Dag Endresen 14:16, 28 September 2012 (CEST)
Maybe "heading" would be more appropriate instead of "title" --Andreas Plank 15:10, 9 October 2012 (CEST)

Simplify parameter

Some questions/proposals:

|has type=       → mandatory (one of SMW Special:Types)
Can text be made the default if missing? --Gregor Hagedorn 21:08, 6 October 2012 (CEST)
Form-default is "String", so should it be "has type=String" with some automated checking category?
Done (assumes "String" if not given). --Andreas Plank 10:08, 8 October 2012 (CEST)
|display units=  → used when “has type” is “Quantities” (, separated)
|corresponds to= → used when “has type” is “Quantities” (; separated)
why comma versus semicolon separated? Perhaps provide a link to the smw documentation to help readers understand the functionality. --Gregor Hagedorn 21:08, 6 October 2012 (CEST)
"corresponds to" can be e.g. "1 W, Watt, Watts; 0.001 kW" so ";" is needed --Andreas Plank 10:08, 8 October 2012 (CEST)
|title=          → optional (title, e.g. “Darwin Core term”)
Remove to reduce potential duplication with Template:Concept in the main article space? --Gregor Hagedorn 21:08, 6 October 2012 (CEST)
Yes could be removed to avoid confusion, but it would be nice to have some section to what a property page, e.g "Property:germplasm:BreedingEvent" or any other property belongs to. Really remove?
Or should it be called "heading"? --Andreas Plank 10:08, 8 October 2012 (CEST)
|label=          → optional (maps to property: rdfs:label)
Remove to reduce potential duplication with Template:Concept in the main article space? Can label be automatically be obtained from there? --Gregor Hagedorn 21:08, 6 October 2012 (CEST)
Can label be automatically be obtained from there? With #ask maybe. If it works, I remove parameter label.
Works with: {{#ask: [[{{PAGENAME}}]] |mainlabel=-|link=none|?skos:prefLabel#prefLabel= |+index=1 |format=list}} --Andreas Plank 10:08, 8 October 2012 (CEST)
If any label, shouldn’t it map to skos:prefLabel? --Andreas Plank 10:46, 8 October 2012 (CEST)
|imported from=  → optional (uses imported page by MediaWiki:Smw_import_local-ns-prefix, details see Help SMW import vocabulary)
Can we have a default here, that if nothing is said it is assumed that the page title is imported? --Gregor Hagedorn 21:08, 6 October 2012 (CEST)
We could assume an import if {{PAGENAME}} has a ":", e.g. "germplasm:BreedingEvent".
Done. --Andreas Plank 10:08, 8 October 2012 (CEST)
|categories=     → optional management categories (, separated list)
Remove to reduce potential duplication with Template:Concept in the main article space? --Gregor Hagedorn 21:08, 6 October 2012 (CEST)
So how can we collect then concepts together or separated? Do I have to create an #ask query for getting e.g. all dcterms? I vote agianst it. You can also use categories to categorize ordinary properties, not used as "concepts" for our terms Wiki. --Andreas Plank 10:08, 8 October 2012 (CEST)