Help talk:Concepts

From semantic-mediawiki.org
Jump to: navigation, search
Please note

Talk pages on this wiki should primarily be used to address possible mistakes as well as missing and superseded information in the documentation.
In case you are seeking support concerning individual questions, please have a look at this page.
The SMW user mailing list is always a good idea for seeking help.

Please note

Contents

[edit] Mistake

shouldnt

  [[Concept:Semantic Web events 2008]] [[located in Germany]] 

be changed into

  [[Concept:Semantic Web events 2008]] [[located in::Germany]] 

? --Toka 14:32, 2 February 2010 (UTC)

Yes it should! Good catch. Yaron Koren 00:00, 4 February 2010 (UTC)

[edit] Browsing Concepts

Anyone know of a way to browse all concepts; similar to a "Special Page"?

You can go to Special:AllPages, then select the "Concept" namespace. Yaron Koren 19:25, 7 June 2010 (UTC)

[edit] Sort pages and include properties

Hi,

I often use the concept to assemble a list of values to choose from in a form and I would like to be able to choose an order and to add a property of the pages. Would that be possible?

Regards, --AdSvS 14:53, 1 July 2010 (UTC)

[edit] Try "show on select"

Hi AdSvS,

on the semediawiki-user mailinglist Neill Mitchell kindly provided hints to a solution to this:

You can achieve this in a non automatic way using SF 1.9's show on 
select functionality. You can see an example here:
http://discoursedb.org/w/index.php?title=Form:Source&action=edit

You could have it that when you select United States from a country 
field, you get set subsequent field that lists the companies for the US.

It takes the values from properties though, so you would have to 
manually populate the lists. You would also need to create one 
<div></div> block per country.

See http://www.mediawiki.org/wiki/Extension:Semantic_Forms#Form_markup_language for a detailled description.

Hope this helps, Achimbode 12:13, 26 July 2010 (UTC)

[edit] Concepts not working

I have no idea what I am doing wrong, but I can not get my concept to work. I just want to dispay all of the pages that have one property

{{#concept: [[Has Name::+]] }}

I have this on a page in the concept namespace, I have created a concept cache, but still nothing. This is driving me insane...please someone help me!

MediaWiki 1.16.0
SMW 1.5.5

Thanks --Dgennaro 01:40, 1 February 2011 (CET)

I presume that you additionally need to specify a category containing the pages to search the property in. However posting to the SMW user mailing list is the fastest way to get support. Cheers --[[kgh]] 19:40, 2 February 2011 (CET)
Yeah, I figured this out late last night and did not have a chance to update. For a concept to work it requires a Category be included.
Thanks for the swift response. --Dgennaro 19:49, 2 February 2011 (CET)
I also have problems with concepts after upgrading SMW from 1.5.0 to 1.7.0 - all concepts from my wiki were defined in the following way (all pages from a namespace):
{{#concept: [[SomeNamespace:+]]|some documentation}}
This had worked before the upgrade but now it doesn't anymore. Is it really the case that I'd have to create categories in addition to the namespaces? That would be most inconvenient. OUA 12:31, 13 January 2012 (CET)
Hi OUA, concepts are unfortunately broken in SMW 1.7.0 and a bug was filed. I am keeping my fingers crossed that it will be back working soon. Cheers --[[kgh]] 14:32, 13 January 2012 (CET)
Hi kgh, I found that concepts are still working in SemanticForms, that is, values from concept does list all my concepts correctly. I've noticed a difference in how the list is obtained though. In SMW_ConceptPage.php the responsible code is
$store = smwfGetStore();
$description = new SMWConceptDescription( $this->getDataItem() );
$query = SMWPageLister::getQuery( $description, $this->limit, $this->from, $this->until );
$queryResult = $store->getQueryResult( $query );
which seems to be broken, whereas in SemanticForms we have in SF_Utils.php
$store = smwfGetStore();
...
$desc = new SMWConceptDescription( $concept );
...
$query = new SMWQuery( $desc );
...
$query_result = $store->getQueryResult( $query );
So it seems to me that the bug is to be found with SMWPageLister::getQuery(). Does anybody have an idea where to look from there. I'm getting lost when in comes to the code concerning database access and queries. OUA 12:02, 16 January 2012 (CET)
Concept caching was fixed just yesterday. You may want to download and install SMW 1.7.0.2 and see if it is working for you. If not this looks may be worth a bug report or at least a mail to the developer mailing list. Such detail is out of scope since it is to esoteric for 99+% of the users. Cheers --[[kgh]] 21:54, 16 January 2012 (CET)

[edit] Example in lead is clipped off by TOC

The <pre> code in the lead extends behind the TOC box. I can't edit or I'd fix it. Sreed 20:08, 24 August 2011 (CEST)

Hi Sreed, is it better now? Cheers --[[kgh]] 20:29, 24 August 2011 (CEST)

[edit] Help:Concept caching

Would be nice to see something like See also that shows links relevant to concepts such as Help:Concept caching without searching the whole database.--MWJames 19:33, 31 October 2011 (CET)

Good idea. I just added a note to the documentation. Thank you and cheers --[[kgh]] 20:31, 31 October 2011 (CET)
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox