Différences entre les versions de « ReferenceAndRecord »

De Semantic MediaWiki - Sandbox

(+ cat)
 
Ligne 41 : Ligne 41 :
 
  |?Visitor count.Total visitor count.Female count
 
  |?Visitor count.Total visitor count.Female count
 
}}
 
}}
 +
 +
[[Category:Semantic MediaWiki example]]

Dernière version du 7 mars 2020 à 21:41

Refs https://www.semantic-mediawiki.org/wiki/Help_talk:Type_Reference#value_property_of_type_record.3F_2819

Annotate

; is used as separator for values which means in order to isolate the record from the reference specific fields one has to encode the values (by using \;) that belong to the record property.

[[Visitor count::1000\;500\;500;1 Jan 2000;https://www.semantic-mediawiki.org/wiki/Semantic_MediaWiki]]

1 000 (500, 500)

Query

{{#ask: [[Visitor count::?;1 Jan 2000;?]]
 |?Visitor count
}}
 Visitor count
ReferenceAndRecord1 000 (500, 500)
{{#ask: [[Visitor count::?;1 Jan 2000;?]]
 |?Visitor count.Total visitor count
 |?Visitor count.Total visitor count.Total count
 |?Visitor count.Total visitor count.Male count
 |?Visitor count.Total visitor count.Female count
}}
 Total visitor countTotal countMale countFemale count
ReferenceAndRecord1 000 (500, 500)1 000500500
Les cookies nous aident à fournir nos services. En utilisant nos services, vous acceptez notre utilisation de cookies.