Importing ltm in Wandora with user-defined constructs !

Forum is for miscellaneous user help requests.

Importing ltm in Wandora with user-defined constructs !

Postby athanassios » Thu Nov 19, 2015 7:38 pm

For more information see also this post reply

Code: Select all
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Title: A Simple Topic Map
Scope: To Import a Topic Map in LTM format with Wandora
Tested On: Wandora 2015-11-13
Description:
This topic map demonstrates how it is possible to add in Wandora
  custom variant names and replace default association types, e.g. the
  Subclass-Superclass with the "gen" and the Class-Instance with the "isa".
It also demonstrates how to display properly
occurrences using predefined scopes for that purpose.

(c) Athanassios I. Hatzis, 2015
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% */

@"utf-8"
#VERSION "1.3"
#BASEURI "http://neuro.org/TIR"

[ WVARNAME = "Wandora variant name version" ("WVARNAME" /ABBR EN)
  @"http://www.wandora.org/core/variant-name-version"
  @"http://wandora.org/si/core/variant-name-version"]

[ WNDR = "Wandora class" ("WNDR" /ABBR EN)
  @"http://wandora.org/si/core/wandora-class"
  @"http://www.wandora.org/core/wandoraclass" ]

[ ABBR : WVARNAME = "Scope Abbreviation" ("Scope Abbreviation" /EN) ("ABBR" /ABBR EN)
  %"http://www.w3.org/TR/html5/text-level-semantics.html#the-abbr-element"
  @"http://wandora.org/si/types/0501" ]

[ EN  = "English language" ("EN" /ABBR EN)
  @"http://www.topicmaps.org/xtm/1.0/language.xtm#en" ]

[ DAT = "Language independent" ("DAT" /ABBR EN)
  @"http://wandora.org/si/core/lang-independent"
  @"http://www.wandora.org/core/langindependent"]

[ isa = "Instantiation" ("isa" /ABBR EN)
 %"http://isotopicmaps.org/tmdm/#sect-types"
 @"http://sw.opencyc.org/concept/Mx4rvViBBJwpEbGdrcN5Y29ycA"
 @"http://psi.topicmaps.org/iso13250/model/type-instance"]
Follow this reply
[type = "Type" ("type" /ABBR EN)
  @"http://psi.topicmaps.org/iso13250/model/type"]

[inst = "Instance" ("inst" /ABBR EN)
  @"http://psi.topicmaps.org/iso13250/model/instance"]

[ gen = "Subtyping" ("gen" /ABBR EN)
  %"http://isotopicmaps.org/tmdm/#sect-subtypes"
  @"http://sw.opencyc.org/concept/Mx4rvViBDpwpEbGdrcN5Y29ycA"
  @"http://psi.topicmaps.org/iso13250/model/supertype-subtype"]

[ bro = "Broader" ("bro" /ABBR EN)
  @"http://psi.topicmaps.org/iso13250/model/supertype"]

[ nar = "Narrower" ("nar" /ABBR EN)
  @"http://psi.topicmaps.org/iso13250/model/subtype"]

[ Product : WNDR = "Product" ("PROD" /ABBR EN)
  @"http://wandora.org/si/types/0601" ]

[ Wine = "Wine" ("Wine" /ABBR EN)
  %"http://en.wikipedia.org/wiki/Wine"
  @"http://wandora.org/si/types/0001" ]

[ Cellar : WNDR = "My Wine Collection" ("Cellar" /ABBR EN)
  @"http://wandora.org/si/types/0101"]

[ PROP : WNDR = "Property" ("PROP" /ABBR EN)
  %"https://schema.org/Property"
  @"http://wandora.org/si/0010" ]

[ vol = "volume" ("vol" /ABBR EN)
  %"http://schema.org/volume"
  @"http://wandora.org/si/0015" ]

[ descr = "description" ("descr" /ABBR EN)
  %"http://schema.org/description"
  @"http://wandora.org/si/0045" ]

[ price = "price" ("price" /ABBR EN)
  %"https://schema.org/price"
  @"http://wandora.org/si/types/0011" ]

[ prd = "producer" ("prd" /ABBR EN)
    @"https://schema.org/producer"]

[ prd01 = "Montenisa Tenuta" ("MontTen" /ABBR EN)
  @"http://wandora.org/si/types/0021"]

[ ros01 = "Sattui Winery Gamay Rouge" ("ros01" /ABBR EN)
    %"http://www.winechateau.com/sku1655395_MONTENISA-BRUT-ROSE-750ML"
    @"http://wandora.org/si/0002"]

gen(Product: bro, Wine: nar)

isa(Wine: type, ros01: inst)
isa(Cellar: type, ros01: inst)

isa(PROP: type, vol: inst)
isa(PROP: type, descr: inst)
isa(PROP: type, price: inst)
isa(PROP: type, prd: inst)

isa(prd: type, prd01: inst)

{ ros01, vol, [[750ml]] } /DAT
{ ros01, price, [[$23.75]] } /DAT
{ ros01, descr, [[This wine joined the list of Tenuta Montenisa products in 2003 and is made from selected Pinot Nero grapes grown in our Calino vineyards in the heart of Franciacorta]] } /EN
athanassios
 
Posts: 47
Joined: Wed Sep 07, 2011 12:16 pm
Location: Greece

Return to How to... and problems

Who is online

Users browsing this forum: No registered users and 2 guests