Talk:Attribute
Is it possible to give an attribute an attribute? For example the attribute population should have a date attribute where it is specified what date or at least which year the population value is from. Fuelbottle 21:43, 20 November 2005 (CET)
- Yes, you can add an attribute to an attribute, but not the the value of an attribute --Max Völkel 15:38, 23 May 2006 (CEST)
Perhaps it could be possible to make it so that each attribute would be a tree.
Example for population attribute.
population - 12,000
/
Datanode2
/ \
/ year - 2002
/
/ population - 10,000
/ /
Population -------Datanode1
\ \
\ year - 2001
\
\ population - 20,000
\ /
Datanode3
\
year - 2003
This could be set up by
[[population.2001:=10,000]] [[population.2002:=12,000]] [[population.2003:=20,000]]
To find the population in year 2001, use population.2001 (return 10000) and to find the year where the population was 10,000, use population.10000 (returns 2001). So the list of populations might be on the bottom of the page while an infobox could contain [[population.2003:]] and the other values could be accesed by browse or search function for attributes. Something like this might actually be something for the wikidata project though, not sure how that will related to the Semantic MediaWiki. Fuelbottle 23:36, 20 November 2005 (CET)
- The syntax won't work that way, even the idea is good. What you want is a kind of an anonymous datatype witch is dynamically created. Therefore I would recommend the following syntax for now:
[[{year:=2001}{population:=10,000}]]- witch maps to an automatically created complex Type witch might look like:
<rdfs:comment> CLSID is a automatic generated ID used for linking the article with the dynamic generated class. </rdfs:comment> <rdf:class rdf:ID="CLSID"> <Attribute:year>2001</Attribute:year> <Attribute:population>10000</Attribute:population> </rdf:class>
- But maybe we can find a better idea/syntax/workaround. MovGP0 00:50, 21 November 2005 (CET)
- Personally I think that the need of such types are very common. Take the example of a city witch was timely the capital of the fictive State "Bornumbu":
[[{since:=1345}{till:=1562}{capital of::Bornumbu}]]- I'm sure this could handle many issures. MovGP0 01:01, 21 November 2005 (CET)
<sp_ch>friend</sp_ch>
[edit] Attribute shown twice
Some attributes are shown twice in the list (they have the same name and data type). This leads to incorrect results and listings. How can I solve this problem?
for example: ...index.php/Spezial:Properties
Zeige (vorherige 50) (nächste 50) (20 | 50 | 100 | 250 | 500)
1. Benutzer mit Datentyp SeiteDieser Datentyp gehört zu den Standardtypen in diesem Wiki. (4) Dieses Attribut wird im Wiki kaum verwendet! Für dieses Attribut wurde kein Datentyp angegeben (Seite wird vorläufig als Typ angenommen). 2. Betriebssystem mit Datentyp ZeichenketteDieser Datentyp gehört zu den Standardtypen in diesem Wiki. (1) Dieses Attribut wird im Wiki kaum verwendet! 3. Betriebssystem mit Datentyp ZeichenketteDieser Datentyp gehört zu den Standardtypen in diesem Wiki. (3)