Help:Sbp.smw.mode
From Semantic Portal Wiki
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
Sbp.smw.mode
do not show
multiple values
regression test mode=list
show nothing in list mode
show something in list mode
test length
http://www.easychair.org/conferences/?conf=ssw08
Categories: SMW FIT | SBP 0.1 | SMW Best Practices | C1 | NoClassCategory41 | NoClassCategory42 | C2 | C3 | C4 | C5 | C6 | C7 | C8 | C8 Test no, show v label
Facts about Sbp.smw.modeRDF feed
| Author | Li Ding + |
| Description | A smart short-cut for adding a SMW tag to a page |
| Has author | Li DIng +, and Jim + |
| Image | Http://abc.image +, File:Abc.image +, File:Imageabc.image +, File:Abc +, File:Http://abc.image +, File:Abcba +, and File:Ding, Li + |
| Module | Help:SMW FIT + |
| Name | Sbp.smw.mode + |
| Part of | AAAI 2009 Spring Symposia +, and AAAI ABC,BBC, CBC + |
| Rdfs:domain | NoClassCategory1 +, NoClassCategory2 +, and NoClassCategory4 + |
| Relation | Li Ding2, Jie Bao2, Jim Hendler2, is RDF +, Li Ding3 +, Jie Bao3 +, Jim Hendler3 +, P3.1.1 +, P3.1.2 +, P3.2.1 +, P3.2.2 +, Troy, New York1 +, Stanford, California2 +, Troy1, New York2 +, Troy1, New York1 +, and Name1.part1; Name1.part2 + |
| Status | unstable + |
| Submission url | http://www.easychair.org/conferences/?conf=ssw08 + |
| Tag | NoClassCategory31 +, and NoClassCategory32 + |
| Version | 0.1 + |

