Wikilambda:Wikilambda/Examples

From Wikispore
Jump to navigation Jump to search

Here are examples of what Abstract Content could look like. Note that these are not prescriptive examples, but illustrative ones. It is entirely up to the communities how the Constructors and the rendering results will look like.

AbstractText

From AbstractText prototype.

 subclassification_string_from_n_n_language(n_wikipedia, n_encyclopedia, English)
  • English: Wikipedias are encyclopedias.
 subclassification_string_from_n_n_language(n_wikipedia, n_encyclopedia, German)
  • German: Wikipedien sind Enzyklopädien.

In the syntax below, that would look like:

 Subclassification(Wikipedia, Encyclopedia)
  • English: Wikipedias are encyclopedias.
  • German: Wikipedien sind Enzyklopädien.

From technical paper

Source: Architecture for a multilingual Wikipedia

 Article(
   content: [
     Instantiation(
       instance: San Francisco (Q62),
       class: Object_with_modifier_and_of(
         object: center,
         modifier: And_modifier(
           conjuncts: [cultural, commercial, financial]
         ),
         of: Northern California (Q1066807)
       )
     ),
     Ranking(
       subject: San Francisco (Q62),
       rank: 4,
       object: city (Q515),
       by: population (Q1613416),
       local_constraint: California (Q99),
       after: [Los Angeles (Q65), San Diego (Q16552), San Jose (Q16553)]
     )
   ]
 )
  • English: San Francisco is the cultural, commercial, and financial center of Northern California. It is the fourth-most populous city in California, after Los Angeles, San Diego and San Jose.
  • German: San Francisco ist das kulturelle, kommerzielle und finanzielle Zentrum Nordkaliforniens. Es ist, nach Los Angeles, San Diego und San Jose, die viertgrößte Stadt in Kalifornien.