Help:Sbp.smw.mode

From Semantic Portal Wiki

Jump to: navigation, search

Contents

Description

Help:Sbp.smw.mode Template:Sbp.smw.mode
  • description: A smart short-cut for adding a SMW tag to a page
  • module: Help:SMW FIT
  • version: 0.1
  • status: unstable
  • author: Li Ding

Examples

Example 1. Typical Use

parse in 'one' v_mode, expect one triple containing "is RDF" Li Ding2, Jie Bao2, Jim Hendler2, is RDF
parse in 'list' v_mode, expect three triples Li Ding3,Jie Bao3,Jim Hendler3

Example 2. Special case when VALUE is empty



Example 3. Special treatment on delimiter when v_mode=list

  • list items are delimited by either ';' or ','
  • ';' has higher priority than ',' when they co-exist in one VALUE
  • ',' is the default delimiter
delimiter is ',', expect two triples linking to 'P3.1.1' 'P3.1.2' 2 triples P3.1.1,P3.1.2
delimiter is ';', expect two triples linking to 'P3.2.1' 'P3.2.2' 2 triples P3.2.1,P3.2.2
delimiter is ';', expect two triples linking to 'Troy, New York' 'Stanford, California' 2 triples Troy, New York1,Stanford, California2
Plan A to avoid mistakenly parse 'Troy, New York' 1 triple Troy1, New York2
Plan B to avoid mistakenly parse 'Troy, New York' 1 triple Troy1, New York1
User should either avoid using ';' or ',' as page name, or not use v_mode=list parsing mode 1 triple Name1.part1; Name1.part2

Example 4. Regression Test

passing namesapce

Category 1 triple NoClassCategory1
Category 1 triple NoClassCategory2
Category (fix Thing2, and do not generate Category:Category: for Thing6 ) 2 triples NoClassCategory31,NoClassCategory32
Category 1 triple NoClassCategory4


type declaration

value carry Category 1 triple Category:C1
Two values carry Category namespace, but Thing2 NOT CATEGORY should not be in category list 3 triples Category:NoClassCategory41 , Thing22 NOT CATEGORY , Category:NoClassCategory42
Make three Categories by asserting default namespace as Category 3 triples C2 , C3 , C4
change display label for the above example 3 triples SAME LABEL , SAME LABEL , SAME LABEL
more test 1 triple C8

show


http://abc.image


abc.image


Imageabc.image


abc


Sbp.smw.mode


Test show


abc


do not show




multiple values


http://abc.image,abc


abc.image,abc


Imageabc.image,abcba


abc,Ding, Li


abc,abc


regression test mode=list

show nothing in list mode



show something in list mode


Li DIng,Jim,Jim


test length


http://www.easychair.org/...


http://www.easychair.org/conferences/?conf=ssw08


AAAI 2009 Spring Symposia


AAAI ABC,BBC, CBC


Personal tools
Semantic Web Community
Tetherless World constellation
maintenance