« ReferenceAndRecord » : différence entre les versions

De Semantic MediaWiki - Sandbox

Aucun résumé des modifications
Aucun résumé des modifications
Ligne 6 : Ligne 6 :
== Annotate ==
== Annotate ==


<code>;</code> 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 `\` the <code>\;</code>) that belong to the record property.
<code>;</code> 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 <code>\;</code>) that belong to the record property.


<pre>
<pre>

Version du 7 mars 2020 à 15:28

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.