Extension talk:Semantic Glossary

From MediaWiki.org
Jump to: navigation, search

Contents

Thread titleRepliesLast modified
Glossary items in links and properties319:09, 8 April 2013
handling synonymous terms in Semantic Glossary108:43, 28 February 2013
Plans of development016:36, 6 November 2012
Semantic Glossary conflicts with Semantic Forms522:22, 27 October 2012
Glossary-Term as a text in a Forme110:52, 30 August 2012
Weird Liquid Threads behavior214:05, 13 May 2012
How do I enter terms?621:16, 7 December 2011
blank Mediawiki after installing Semantic Glossary211:40, 16 June 2011

Glossary items in links and properties

first off, really good idea to use SMW for glossary items, makes them very reusable.

If I define a glossary term A1, and have these:

[[A1 testing]], [[Property::A1 testing]]

I end up with this:

[[A1 testing]] where the brackets are visible, A1 is a glossary item but there's no link, and [[:A1 testing|A1 testing]], same condition with no assignment.

Any way to fix this?

thanks!

David Mason (talk)15:43, 31 March 2013

Fixed in 0.4.2. Alas, if you have an MW pre1.20 installation now the annotation of terms between nowiki-tags is back. No way to fix this, i'm afraid.

F.trott (talk)09:04, 7 April 2013

sorry, but where do I get 0.4.2? I've just found 0.1.

David Mason (talk)18:25, 8 April 2013

Sorry, I meant Extension:Lingo 0.4.2. Here is a direct link: http://code.google.com/p/lingo-extension/downloads/list There is a small bug left, Lingo 0.4.2 will still report being 0.4.1 on Special:Version. Will fix that soonish.

F.trott (talk)19:09, 8 April 2013
 
 
 

handling synonymous terms in Semantic Glossary

How do I handle synonyms in Semantic Glossary? In Lingo you can specify synonyms in the following way:

TERM ACRONYM
term
Term definition

Thanks!

Anna

128.183.170.18418:12, 27 February 2013

Hi Anna, good question. I thought it would be as easy as specifying a second Glossary-Terms for one definition. But I just tried it and it does not work. So right now the only way to do this is to actually define the two synonyms separately. I will fix the extension so this should be easier in future versions.

Cheers

F.trott (talk)08:43, 28 February 2013
 

Plans of development

I love this extension! How are you planning to further improve it? What about supporting the word forms like "fox - foxes".

Katkov Yury (talk)16:36, 6 November 2012

Semantic Glossary conflicts with Semantic Forms

First of all, thank you for this extension!

I've tried this extension, but it seems it conflicts with Semantic Forms extension. My observation is the following: When the property name (eg.CSS property name) contains a term (eg. CSS) from a glossary, the "Edit with form" option will not work anymore. Is there any workaround for this problem?

Thank you,

Ndrew
78.92.15.8110:30, 5 September 2012

Hi Andrew,

I was not aware of this problem until now, so alas I do not know a workaround. Maybe you could try to exclude the form from markup by including the magic word __NOGLOSSARY__ anywhere in that form's text.

F.trott (talk)11:32, 5 September 2012

Dear F.trott,

Unfortunately all of my pages based on forms... :-(

Best regards,

Ndrew
78.92.15.8112:42, 5 September 2012
 

Hi Stephan, I don't really remember but I thought I had the same problem and fixed this excluding formedit from text parsing

class LingoParser 
protected function realParse( &$parser, &$text ) {
...
if ( $text == null ||
...
$action == 'formedit' ||                        
...
MWJames (talk)13:26, 5 September 2012

Thank you very much, it's Perfect! :-) Best regards, ndrew

78.92.15.8114:56, 5 September 2012

I now fixed this by using an earlier hook. The problem was, that Lingo also annotated stuff between nowiki tags. This should not happen anymore now.

Cheers,

F.trott (talk)22:22, 27 October 2012
 
 
 
 

Glossary-Term as a text in a Forme

First of all: great extension! :-)

I have "hopefully a short" challenge:

For example, I define the properties Glossary-Term::CSS and Glossary-Definition::Cascading Style Sheet in a Glossary-page. And I'm using "CSS" as an fixtext in a Forme. Somthing like: "CSS: NameCSS". Now I open a Page with this Forms and get "CSSCascading Style Sheet" (term and definition concatenated) with no question mark. I expected only the term CSS. May you can help? Thanks!

Gregor sander (talk)11:23, 8 August 2012

The cause may either be that the CSS or JS was not loaded or that the JS fails at some point. I seem to remember that problem, but I thought I fixed it. Maybe could you try getting the latest versions of Lingo and SemanticForms? If that does not help, do you have a link to the problematic Form?

F.trott (talk)10:52, 30 August 2012
 

Weird Liquid Threads behavior

I have the Glossary disabled on Talk pages and am using LQ on the site. If a discussion uses a term in the Glossary, the definition is inserted in the text of the message???

Is there a way to disable the Glossary by Application/Extension in localsettings or some other way to turn off the Glossary by Extension in addition to Namespace? Thanks DaveL (talk) 23:15, 12 May 2012 (UTC)

DaveL (talk)23:15, 12 May 2012

I think LQT stores messages in the Thread namespace. Try disabling that for Semantic Glossary. Cheers,

F.trott (talk)23:24, 12 May 2012

That worked, Thanks!!!

DaveL (talk)14:05, 13 May 2012
 
 

How do I enter terms?

Sorry for the Noob question but I've installed the extension as well as Lingo on my SMW site. I've created the properties and now I'm stuck to figure out how to start creating Pages/terms for the Glossary? I'm new to SMW and just figuring out the structure of properties, types, categories, forms, templates and all. Glossary was my go-button and I LOVE the idea of it, but where the heck do I find some step-by-step instructs on how to start using it? Thanks, Dave L

65.122.249.19619:13, 2 December 2011

Ok, lets build a simple structure of pages:

  • Create a page 'Hypertext Markup Language' and insert the following text (taken from wikipedia):
HTML is the predominant markup language for web pages. HTML elements are the basic building-blocks of webpages.
Web browsers can refer to CSS to define the appearance and layout of text and other material. The W3C, maintainer
of both the HTML and the CSS standards, encourages the use of CSS over explicitly presentational HTML markup. In
1980, physicist Tim Berners-Lee, who was a contractor at CERN, proposed and prototyped ENQUIRE, a system for CERN
researchers to use and share documents. Berners-Lee considered HTML to be an application of SGML. It was formally
defined as such by the IETF with the mid-1993 publication of the first proposal for an HTML specification.
  • Create a page 'Cascading Style Sheet' and insert the following text:
* Abbreviation: [[Glossary-Term::CSS]]
* Definition: [[Glossary-Definition::Cascading Style Sheet]]
  • Create similar pages for 'CERN', 'ENQUIRE', 'SGML', 'IETF'
  • Go back to the page 'Hypertext Markup Language'. The abbreviations should be underlined and when you hover over them the Definition should appear.
  • To provide links with the tooltips, define the Glossary-Link property for the pages, e.g. go to 'Cascading Style Sheet' and modify it so it looks like this:
* Abbreviation: [[Glossary-Term::CSS]]
* Definition: [[Glossary-Definition::Cascading Style Sheet]]
* Link: [[Glossary-Link::Cascading Style Sheet]]
  • Go back to the page 'Hypertext Markup Language' to see the effect
  • You can also provide interwiki links, e.g. on the 'Cascading Style Sheet' try replacing the line with the link by
* Link: [[Glossary-Link::wikipedia:Cascading Style Sheet]]
  • If you want, create a page 'Glossary' and put the following query in it:
{{#ask:[[Glossary-Term::+]]
|?Glossary-Term
|?Glossary-Definition
|?Glossary-Link
|mainlabel=-
|format=table
}}

Cheers,

F.trott21:31, 2 December 2011

Beautiful - Thank You so much! (and I posted the example)

Dave8800801:12, 3 December 2011

Thanks! :)

F.trott01:13, 3 December 2011
 

I looked at your Extension:Semantic Glossary/Example and made a general overhaul. Please also note that you should use <nowiki></nowiki> for any documentation purpose where you reference to internal declarations such as [[Glossary:: ... ]] otherwise the documentation will contain red links.

MWJames07:56, 3 December 2011

Hi James,

thanks for that. The screenshots especially are awesome, I am always to lazy to do them. One thing though - the original example was meant for somebody completely new to SMW (and maybe not too experienced with MW, either), hence the detailed step-by-step instructions. Should we get back into that direction? I like the idea of the Semantic Glossary as a starting point for an SMW experience, because it gives useful results almost immediately.

Cheers,

F.trott10:05, 3 December 2011

Hi Stephan, anything works for me as long as the user can work with it. Cheers,

MWJames21:16, 7 December 2011
 
 
 
 
 

blank Mediawiki after installing Semantic Glossary

I have installed Semantic Glossary the way it is described. I also have Lingo 0.2 and Semantic Mediawiki (1.5) But once I install Semantic Glossary, I get a blank Wiki page. That means: nothing works. Not error message, nothing. The extension page says that Semantic Mediawiki 1.6 is required, but the official latest version is 1.5 So what could be wrong? Any help is greatly appreciated. Anja

129.233.51.1215:23, 15 June 2011

You really need SMW 1.6, 1.5 will not work, there were considerable changes. SMW 1.6 not being released is also the main reason why Semantic Glossary has not seen a release yet. However, SMW 1.6 is reasonably stable by now so you might give it a try.

F.trott15:39, 15 June 2011

Thanks for the answer. I will try SMW 1.6 Anja

129.233.51.1211:40, 16 June 2011