From GamingWiki
Jump to: navigation, search

Semantic Internal Objects are an advanced way of making the wiki data-driven. For more information on this extension, see [1].

Available objects[edit]

Is relationship of[edit]

Suppose that Adam and Betty are related somehow. For example, they are siblings. To encode this, put the following code in Adam's page:

 {{set_internal:is relationship of
 |has name=Betty
 |has description=is the brother of
 }}

The idea here is that we should be able to form a sentence with {{{CURRENTPAGE}}} [has description] [has name], in this case "Adam is the brother of Betty".

<graphviz border="frame" format="png" renderer="dot">

digraph character {
 rankdir=LR;
 node [fontcolor=blue,fontsize=12];
 "Semantic Internal Objects" [URL="Semantic Internal Objects"];
 { rank=same;

"Template:((#ask: Is relationship of::Semantic Internal Objects

     |mainlabel=-
     |?Has name=
     |?Has description=
     |format=array |propsep=" [URL="Template:((#ask: Is relationship of::Semantic Internal Objects
     |mainlabel=-
     |?Has name=
     |?Has description=
     |format=array |propsep="];"Template:))" [URL="Template:))"];

{"Template:((#ask: Is relationship of::+Has name::Semantic Internal Objects

     |mainlabel=-
     |?Is relationship of=
     |?Has description=
     |format=array |propsep=" [URL="Template:((#ask: Is relationship of::+Has name::Semantic Internal Objects
     |mainlabel=-
     |?Is relationship of=
     |?Has description=
     |format=array |propsep="]};{"Template:))" [URL="Template:))"]};
 }
 edge [fontsize=9];

"Semantic Internal Objects" -> "Template:((#ask: Is relationship of::Semantic Internal Objects

     |mainlabel=-
     |?Has name=
     |?Has description=
     |format=array |propsep=" [label="|sep="];"Semantic Internal Objects" -> "Template:))" [label=""];

"Template:((#ask: Is relationship of::+Has name::Semantic Internal Objects

     |mainlabel=-
     |?Is relationship of=
     |?Has description=
     |format=array |propsep=" -> "Semantic Internal Objects" [label="|sep="];"Template:))" -> "Semantic Internal Objects" [label=""];
}

</graphviz>