« Issue/1882 » : différence entre les versions
De Semantic MediaWiki - Sandbox
Aucun résumé des modifications |
Aucun résumé des modifications |
||
(13 versions intermédiaires par le même utilisateur non affichées) | |||
Ligne 3 : | Ligne 3 : | ||
[[Property:Has text]] | [[Property:Has text]] | ||
= Define subobjects = | = Define subobjects = | ||
<pre> | |||
{{#subobject:s1 | {{#subobject:s1 | ||
|Has text=1abc | |Has text=1abc | ||
Ligne 8 : | Ligne 9 : | ||
{{#subobject:s2 | {{#subobject:s2 | ||
|Has text= | |Has text=12xyz | ||
}} | }} | ||
{{#subobject:s3 | {{#subobject:s3 | ||
|Has text= | |Has text=123xyz | ||
}} | }} | ||
{{#ask: [[-Has subobject::{{FULLPAGENAME}}]] | {{#subobject:s4 | ||
|Has text=1234xyz | |||
}} | |||
{{#subobject:s5 | |||
|Has text=12345xyz | |||
}} | |||
{{#subobject:s6 | |||
|Has text=123456xyz | |||
}} | |||
{{#subobject:s6 | |||
|Has text=1234567xyz | |||
}} | |||
{{#subobject:s10 | |||
|Has text=1234567890xyz | |||
}} | |||
{{#subobject:s20 | |||
|Has text=12345678901234567890xyz | |||
}} | |||
{{#subobject:toni | |||
|Has text=SMWCon Fall 2010, SMWCon Fall 2011, SMWCon Fall 2012, SMWCon Fall 2013, SMWCon Fall 2014, SMWCon Fall 2015, SMWCon Fall 2016, | |||
}} | |||
{{#subobject:nallet | |||
|Has text=SMWCon Fall 2012, SMWCon Fall 2013, SMWCon Fall 2014, SMWCon Spring 2014, SMWCon Fall 2015, SMWCon Fall 2016, | |||
}} | |||
</pre> | |||
{{#subobject:s1 | |||
|Has text=1abc | |||
}} | |||
{{#subobject:s2 | |||
|Has text=12xyz | |||
}} | |||
{{#subobject:s3 | |||
|Has text=123xyz | |||
}} | |||
{{#subobject:s4 | |||
|Has text=1234xyz | |||
}} | |||
{{#subobject:s5 | |||
|Has text=12345xyz | |||
}} | |||
{{#subobject:s6 | |||
|Has text=123456xyz | |||
}} | |||
{{#subobject:s7 | |||
|Has text=1234567xyz | |||
}} | |||
{{#subobject:s10 | |||
|Has text=1234567890xyz | |||
}} | |||
{{#subobject:s20 | |||
|Has text=12345678901234567890xyz | |||
}} | |||
{{#subobject:toni | |||
|Has text=SMWCon Fall 2010, SMWCon Fall 2011, SMWCon Fall 2012, SMWCon Fall 2013, SMWCon Fall 2014, SMWCon Fall 2015, SMWCon Fall 2016, | |||
}} | |||
{{#subobject:nallet | |||
|Has text=SMWCon Fall 2012, SMWCon Fall 2013, SMWCon Fall 2014, SMWCon Spring 2014, SMWCon Fall 2015, SMWCon Fall 2016, | |||
}} | |||
= Query Propery = | |||
== Fall 2016 == | |||
<pre> | |||
{{#ask: [[-Has subobject::{{FULLPAGENAME}}]] [[Has text::~*Fall 2016*]] | |||
|format=count | |||
}} | |||
{{#ask: [[-Has subobject::{{FULLPAGENAME}}]] [[Has text::~*Fall 2016*]] | |||
|?Has text=text | |?Has text=text | ||
|format=table | | format=table | ||
| limit=100 | |||
}} | }} | ||
{{#ask: [[-Has subobject::{{FULLPAGENAME}}]] | </pre> | ||
{{#ask: [[-Has subobject::{{FULLPAGENAME}}]] [[Has text::~*Fall 2016*]] | |||
|format=count | |format=count | ||
}} | }} | ||
{{#ask: [[Has text::~* | {{#ask: [[-Has subobject::{{FULLPAGENAME}}]] [[Has text::~*Fall 2016*]] | ||
|? Has text=text | |?Has text=text | ||
| format=table | |||
| limit=100 | |||
}} | |||
== xy only == | |||
<pre> | |||
{{#ask: [[-Has subobject::{{FULLPAGENAME}}]] [[Has text::~*xy*]] | |||
|format=count | |||
}} | |||
{{#ask: [[-Has subobject::{{FULLPAGENAME}}]] [[Has text::~*xy*]] | |||
|?Has text=text | |||
| format=table | |||
| limit=100 | |||
}} | |||
</pre> | |||
{{#ask: [[-Has subobject::{{FULLPAGENAME}}]] [[Has text::~*xy*]] | |||
|format=count | |||
}} | |||
{{#ask: [[-Has subobject::{{FULLPAGENAME}}]] [[Has text::~*xy*]] | |||
|?Has text=text | |||
| format=table | |||
| limit=100 | |||
}} | |||
== xyz == | |||
<pre> | |||
{{#ask: [[-Has subobject::{{FULLPAGENAME}}]] [[Has text::~*xyz*]] | |||
|format=count | |||
}} | |||
{{#ask: [[-Has subobject::{{FULLPAGENAME}}]] [[Has text::~*xyz*]] | |||
|?Has text=text | |||
| format=table | |||
| limit=100 | |||
}} | |||
</pre> | |||
{{#ask: [[-Has subobject::{{FULLPAGENAME}}]] [[Has text::~*xyz*]] | |||
|format=count | |||
}} | |||
{{#ask: [[-Has subobject::{{FULLPAGENAME}}]] [[Has text::~*xyz*]] | |||
|?Has text=text | |||
| format=table | | format=table | ||
| limit=100 | | limit=100 | ||
}} | }} |
Dernière version du 4 octobre 2016 à 12:14
See https://github.com/SemanticMediaWiki/SemanticMediaWiki/issues/1882
Property used
Define subobjects
{{#subobject:s1 |Has text=1abc }} {{#subobject:s2 |Has text=12xyz }} {{#subobject:s3 |Has text=123xyz }} {{#subobject:s4 |Has text=1234xyz }} {{#subobject:s5 |Has text=12345xyz }} {{#subobject:s6 |Has text=123456xyz }} {{#subobject:s6 |Has text=1234567xyz }} {{#subobject:s10 |Has text=1234567890xyz }} {{#subobject:s20 |Has text=12345678901234567890xyz }} {{#subobject:toni |Has text=SMWCon Fall 2010, SMWCon Fall 2011, SMWCon Fall 2012, SMWCon Fall 2013, SMWCon Fall 2014, SMWCon Fall 2015, SMWCon Fall 2016, }} {{#subobject:nallet |Has text=SMWCon Fall 2012, SMWCon Fall 2013, SMWCon Fall 2014, SMWCon Spring 2014, SMWCon Fall 2015, SMWCon Fall 2016, }}
Query Propery
Fall 2016
{{#ask: [[-Has subobject::{{FULLPAGENAME}}]] [[Has text::~*Fall 2016*]] |format=count }} {{#ask: [[-Has subobject::{{FULLPAGENAME}}]] [[Has text::~*Fall 2016*]] |?Has text=text | format=table | limit=100 }}
2
text | |
---|---|
Issue/1882 | SMWCon Fall 2012, SMWCon Fall 2013, SMWCon Fall 2014, SMWCon Spring 2014, SMWCon Fall 2015, SMWCon Fall 2016, |
Issue/1882 | SMWCon Fall 2010, SMWCon Fall 2011, SMWCon Fall 2012, SMWCon Fall 2013, SMWCon Fall 2014, SMWCon Fall 2015, SMWCon Fall 2016, |
xy only
{{#ask: [[-Has subobject::{{FULLPAGENAME}}]] [[Has text::~*xy*]] |format=count }} {{#ask: [[-Has subobject::{{FULLPAGENAME}}]] [[Has text::~*xy*]] |?Has text=text | format=table | limit=100 }}
8
text | |
---|---|
Issue/1882 | 1234567890xyz |
Issue/1882 | 12xyz |
Issue/1882 | 12345678901234567890xyz |
Issue/1882 | 123xyz |
Issue/1882 | 1234xyz |
Issue/1882 | 12345xyz |
Issue/1882 | 123456xyz |
Issue/1882 | 1234567xyz |
xyz
{{#ask: [[-Has subobject::{{FULLPAGENAME}}]] [[Has text::~*xyz*]] |format=count }} {{#ask: [[-Has subobject::{{FULLPAGENAME}}]] [[Has text::~*xyz*]] |?Has text=text | format=table | limit=100 }}
8
text | |
---|---|
Issue/1882 | 1234567890xyz |
Issue/1882 | 12xyz |
Issue/1882 | 12345678901234567890xyz |
Issue/1882 | 123xyz |
Issue/1882 | 1234xyz |
Issue/1882 | 12345xyz |
Issue/1882 | 123456xyz |
Issue/1882 | 1234567xyz |