Re: [SMW-devel] Virtuoso and special characters

2012-10-22 Thread CNIT
On 23.10.2012 5:43, Danilo da Rosa wrote: Hello, we are having some trouble developing a MW extension, using SMW with Virtuoso, when having string objects with special characters in the triple store. When making a SPARQL query, through the SMWSparqlDatabase::doquery ($sparql) method, if the

Re: [SMW-devel] unit tests and acceptance tests of SMW+SF+SRF+...

2012-08-27 Thread CNIT
On 24.08.2012 16:58, Jeroen De Dauw wrote: Hey, The unit tests create temporary tables themselves to work with, so no cleanup required :) This is indeed the case, as long as you indicate the tests to be in the Database group using the @group Database annotation. Important to not forget

Re: [SMW-devel] PHP requirements

2012-07-18 Thread CNIT
On 17.07.2012 17:14, Jeroen De Dauw wrote: Hey, Shouldn't we hold these requirements in the extensions? [1] These docs are for MediaWiki 1.19. 1.20 does require 5.3 or later. Furthermore, I send a mail to the lists about using PHP 5.3 in the next version of SMW, and no one complained. And

Re: [SMW-devel] [SMW] Query performance and in-memory storage of SMW-related queries

2012-01-15 Thread CNIT
14.01.2012 18:33, James Hong Kong пишет: Hi, Starting with SMW 1.7 and MW 1.18, we began to convert our old legacy document system into a SMW-MW based system which right now left us with more than 700.00 triplets stored in SMW but at the same time decreased our response time on SMW-related

Re: [SMW-devel] Problem with SMW and MySQL 5.1.49..52

2011-04-19 Thread CNIT
08.04.2011 18:42, Patrick Nagel пишет: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I first encountered this in October 2010, when I switched to MySQL 5.1.50 on a testing system (while the production system is still running MySQL 5.0.91). The simple query {{#ask:

Re: [SMW-devel] Fwd: [Wikitech-l] ResourceLoader, now in trunk!

2010-09-06 Thread CNIT
04.09.2010 18:33, Markus Krötzsch пишет: This is something SMW and extensions deploying own JavaScript/CSS certainly should look at. Halo already had some of the mentioned problems earlier (due to large amounts of scripts and styles) and may be able to integrate with the then standard MW

Re: [SMW-devel] How to display parent comment's title when replying to it

2010-06-25 Thread CNIT
25.06.2010 2:51, Muscu, Ram ?: [NOTE: sorry for any redundancy as it was mistakenly posted on to the semediawiki-user before] We are building a simple threaded commenting system with each comment having its own title. On the form page for replying to a comment, I would like to display

Re: [SMW-devel] Semantic Parser Engine

2010-04-26 Thread CNIT
23.04.2010 23:41, Jeff Thompson ?: If Wikipedia will only have the data but no query (because it's a burden for its servers), then maybe there should be software on the client to download the raw data and process the query locally. In some browsers, even javascript is fast enough for this,

Re: [SMW-devel] Semantic Parser Engine

2010-04-23 Thread CNIT
22.04.2010 18:04, Jeroen De Dauw пишет: Hey, How likely will Wikipedia adopt SMW some time in the future? This won't be any time soon. There is some effort going on to get a stripped down version of SMW that does not have query capabilities onto commons though. Getting SMW on other WMF

Re: [SMW-devel] Short URLs for RSS feeds

2010-02-26 Thread CNIT
26.02.2010 19:49, Yaron Koren ?: CNIT - perhaps you responded to the wrong thread? Sorry - I was writing in haste. I think whether /Special:Ask/Concept:MyConcept short address is possible, where the Concept:MyConcept will also have the printouts and other parameters (so I would not need

Re: [SMW-devel] The unaskable question about SMW and Wikipedia

2009-12-24 Thread CNIT
21.12.2009 5:59, Jeff Thompson пишет: Every once in a while I work up the courage to ask about SMW on Wikipedia. Is there anything that can be said about plans for this game-changing event? Thanks, - Jeff I can tell you only some rumours: 1. SMW requires to be reviewed by MediaWiki

Re: [SMW-devel] Call for Pariticipation: Semantic MediaWiki Camp 2009

2009-11-05 Thread CNIT
05.11.2009 18:07, Markus Krötzsch пишет: [Please forward as appropriate. Apologies for cross posting.] == Semantic MediaWiki Camp 2009 == http://bit.ly/SMWCamp09 November 7--8 2009 (this weekend), Karlsruhe, Germany Not registered yet? You can also register on-site (15 EUR). The

Re: [SMW-devel] Anybody knows how to get all triples of a page in aprogram?

2009-07-24 Thread CNIT
Jie Bao пишет: Thanks Anja. I have a slightly different coding based yours that works: // return an array of arraies of predicate-value pairs of the page function getTriple($title) { $page = SMWDataValueFactory::newTypeIDValue( '_wpg', $title-getFullText()); $semdata =

Re: [SMW-devel] Patch to make SMW output ISO8601 dates

2009-03-05 Thread CNIT
Hi, it's me again... I thought some more about On 2009-03-05 03:09, Markus Krötzsch wrote: I suggest a slightly different control interface, though. The output is only a problem for #ask queries, right?My suggestion is to use the existing printout modifier mechanism that works for

Re: [SMW-devel] Patch to make SMW output ISO8601 dates

2009-03-05 Thread CNIT
Patrick Nagel пишет: I'll try to come up with a patch that makes SMW understand more ISO8601 dates. I will only implement the (recommended) extended format (with hyphens / colons), not the basic format (without hyphens / colons). I don't know about week dates and ordinal dates yet,

Re: [SMW-devel] [Extension] SMW Refresh by Page Name

2009-02-10 Thread CNIT
Hi! I'm trying to upgrade one host from SMW 1.3 to SMW 1.4.1. I have major problems with new Date property class. Russian-formatted dates which were perfectly recognized by old Date property class (I believe they were just using php function to parse dates) aren't looks valid to new class. So,

[SMW-devel] SMW 1.41 date parsing

2009-02-10 Thread CNIT
Hi! Sorry for posting too fast, I've looked further and found where the localization is performed. The Russian file is attached. Please update SVN if possible. Properties seems to be correct after refreshing. My date templates still are broken, will investigate further. Dmitriy

[SMW-devel] Property values mass-deletion

2009-01-12 Thread CNIT
Hi! At one of long running SMW site I was asked to delete pages which had Properties of Date type defined for some interval. There are hundreds of such pages. Maybe a {{#delete}} parser function can be implemented? Though I see the problem that text from the pages wouldn't be erased, so when

Re: [SMW-devel] Memory leak?

2009-01-12 Thread CNIT
Hi, I wonder if anyone can tell me if the functions used when I call SMWQueryProcessor::getResultFromQueryString should release all the memory after they finished? I thought I could avoid a memory problem by calling getResultFromQueryString with different 'offset' values to retrieve

Re: [SMW-devel] Property values mass-deletion

2009-01-12 Thread CNIT
Markus Krötzsch пишет: On Montag, 12. Januar 2009, CNIT wrote: Hi! At one of long running SMW site I was asked to delete pages which had Properties of Date type defined for some interval. There are hundreds of such pages. Maybe a {{#delete}} parser function can be implemented? Though I

Re: [SMW-devel] Non-linear data type query processing

2008-11-14 Thread CNIT
Temlakos пишет: Anniversaries certainly /would/ be of interest. That would require a query process that could take the numerical value, resolve it into day, month, and year, and then search for a month and a day. It would /also/ require a specification of which calendar the anniversary is

Re: [SMW-devel] Ongoing SMW changes

2008-10-15 Thread CNIT
To make it much simplier, one probably would store integer values of y,m,d,h,m,s in separate fields corresponding to every numerical date. Then, such queries can be performed much simplier. I believe that memorable dates are important thing for many wikis:

Re: [SMW-devel] Ongoing SMW changes

2008-10-13 Thread CNIT
Output is already localised anyway, using the wiki language in the Factbox and the user language in Special:Browse etc. It is technically not possible (without much added processing effort) to localise page contents to user settings, since the wiki page is cached for all users. but

Re: [SMW-devel] Ongoing SMW changes

2008-10-13 Thread CNIT
Plain numbers are interpreted as years. There could be another syntax for what you want here, though. Should not be a major problem, if we have a syntax proposal. Well, it's just a number, stored in database. Maybe percent sign as prefix? [[Date::%internal_date_number_in_seconds]]

Re: [SMW-devel] Building an RSS query URL

2008-10-09 Thread CNIT
Hi Markus! Can you please point me out, what's part of my RSS special:ask URL is wrong? I am building a link with $skintpl-makeI18nUrl( $link, $urlaction ); where the $link=Special:Ask; $urlaction=q=[[Concept:News]]po=%3FDatesort0=Dateorder0=DESCsc=1eq=yeslimit=20format=rss; The

Re: [SMW-devel] [News] SVN Warning

2008-10-01 Thread CNIT
Hi all, for SMW 1.4, we wish to address some problems and restrictions of SMW that are due to some parts of its core architecture. Changing some central components is thus not to be avoided. Two problems may temporarily occur: * The changed implementation is new and not well tested

Re: [SMW-devel] [News] SMW 1.3 released

2008-09-17 Thread CNIT
Markus Krötzsch пишет: Okay, great! I will then only upload the language file, as we currently have no way of editing those translations via translatewiki. Maybe some work-around solution such as a fake extension that only hosts those extra messages before they are converted into our files

Re: [SMW-devel] [News] SMW 1.3 released

2008-09-12 Thread CNIT
Hi! Besides previous problem with {{#expr {{#ask ... format=count}} }} not being able to evaluate due to span tag in result of ask format=count, it also seems that english default keywords doesnt work anymore in queries, for example on my Russian wiki I can't query [[Category:Задания]], only

Re: [SMW-devel] [News] SMW 1.3 released

2008-09-08 Thread CNIT
Hi, we are happy to announce the release of the new Semantic MediaWiki 1.3. The new version introduces a number of new features and general improvements. Upgrading from SMW 1.2 requires only little effort, but it is still recommended to read the installation and upgrade instructions [1].

Re: [SMW-devel] AnyDateTime library

2008-09-03 Thread CNIT
Daniel Friesen пишет: ^_^ heh... this project gets more /fun/ by the hour... Julian dates... right, two calenders to deal with... Going to have to work on conversions. I looked over the Historical Date in Semantic Calender. No, it doesn't handle time. Also, it to is limited with the float

Re: [SMW-devel] New feature: Query control and query permissions

2008-07-09 Thread CNIT
SMW 1.2 extends the options for controlling which queries users are allowed to ask, and it has a mechanism that can be used to let some users ask more than others (permissions). The detailed query control settings are achieved by the new configuration parameter $smwgQFeatures. This

Re: [SMW-devel] Query syntax poll

2008-06-06 Thread CNIT
Markus Krötzsch пишет: On Freitag, 6. Juni 2008, CNIT wrote: Hi all, I have a proposal for a simplification in #ask query syntax that I would like to get some feedback on. If you currently ask for property chains, you need something like the following: {{#ask: [[works at::q

Re: [SMW-devel] Cannot disable further results link

2008-06-04 Thread CNIT
CNIT пишет: Hi! After upgrading to 1.12 I've found that problem with format=embedded and further results link didn't disappear (no wonder). So, I've looked through the code and found a simple fix. It seems that searchlabel was applied not checking it's empty value, which _should_ means

Re: [SMW-devel] Cannot disable further results link

2008-06-03 Thread CNIT
Hi! After upgrading to 1.12 I've found that problem with format=embedded and further results link didn't disappear (no wonder). So, I've looked through the code and found a simple fix. It seems that searchlabel was applied not checking it's empty value, which _should_ means that further

[SMW-devel] Cannot disable further results link

2008-05-28 Thread CNIT
Hi! I've managed to update from SVN 32497 to SVN 35477 (a long time, I know). My MW is 1.11.2 (I've not updated to 1.12, yet, because I want to resolse possible SMW issues, first). Now one of my templates behaves differently: {{#ask: [[Category:Памятные даты]]

Re: [SMW-devel] Language environment

2008-03-18 Thread cnit
You were not wrong. In fact, what you just said--the global declaration--was the one thing that I had not thought to include in my object-method code. When I declared $wgLanguageCode as a global variable, I gained access to it. So now my repetition of Julian or Gregorian dates displays

[SMW-devel] SMW_refreshData.php

2008-02-06 Thread cnit
Hello, my SMW_refreshData.php produces an error during the execution: Fatal error: Call to a member function getNamespace() on a non-object in /var/www/wiki/engine/includes/Parser.php on line 1930 for every page ID (I am running in verbose mode) which contains {{#ask:...}} query. I do include

[SMW-devel] sorting on multiple properties values

2008-02-06 Thread cnit
Hi! Can I use consequtive sorting by multiple property values, comparable to mysql ORDER BY column1, column2 in ask query? I've tried sort=Leap0,Year| it doesn't return any result. sort=Leap0| works fine, though. Such feature would be greatly appreciated. Sincerely, Dmitriy

Re: [SMW-devel] sorting on multiple properties values

2008-02-06 Thread cnit
There is no such feature by now, but it would be possible to do that if someone finds the time (basically one would use an array of sort terms instead of a single string internally). I think it is OK to use , as a separator (I did not encounter many property names with that symbol yet ...).

Re: [SMW-devel] Updates: Images, LIKE-search, sorting tables

2008-01-09 Thread cnit
Hi Markus, * There is a new RSS-Feed feature that allows you to subscribe to query results. Besides the associated performance issues with thousands of users re-issuing queries regularly, this should be an extremely cool thing. It simply works by creating an inline query with the new format

Re: [SMW-devel] {{#ask}}

2007-12-29 Thread cnit
What I meant was: a simple cron-job can touch LocalSettings.php regularly to purge the MW cache globally. Not much interaction with MW needed for that. Yes, that's simple. I guess a strong solution for that will still take some time. One could of course store inline queries in some table, use

Re: [SMW-devel] SMW performance

2007-12-28 Thread cnit
Forget my previous post. The problem goesaway when I removed one template. It seems the performance issue is related tothe application instead of the database. Try setting up eAccelerator for PHP, maybe it would help a bit. Also, I believe that MW/SMW requires dedicated server (co-location).

Re: [SMW-devel] {{#ask}}

2007-12-28 Thread cnit
Well, that is not the case for the current parser cache, neither in MW nor in SMW. But if course it could be achieved with some server-side cronjobs. Ah, I didn't knew about MW cronjobs. That sounds nice. Will try to find out some examples. Maybe you're right that such functionality shouldn't

Re: [SMW-devel] swedish collation error on semantic-mediawiki.org with category query and some pages

2007-12-13 Thread cnit
Well, not sure ... in general, SMW and MW have rather similar ways of creating tables, and normally they just come out having the same settings (it does not matter if they use Swedish collation, as long as they use the same). Collation does matter for string ordering operations (which are used

Re: [SMW-devel] {{#ask}}

2007-12-12 Thread cnit
Markus (or perhaps someone else), Can you please give a hint, why with my query {{#ask: [[Category:News]] | ?Date| sort=Date| order=descending| limit=3| format=template| template=newsrow| default=There was no news| searchlabel=Browse all news...| }} In the SMWSQLStore::createSQLQuery()

Re: [SMW-devel] {{#ask}}

2007-12-03 Thread cnit
And another note: {{#ask}} is in SVN (in a first version). Thank you! Working example query: {{#ask: [[Category:Country]] [[borders::Nigeria]] | ?population| ?area#km² = ''Size''| format=list| limit = 3| link=all| intro=bTest/b_| }} It seems that the category specific

Re: [SMW-devel] ask query format=template

2007-11-12 Thread cnit
Yes, I could use this as well. But this feature comes only after the implementation of {{#ask...}} (since this change will change the interaction of inline queries with MediaWiki's table creation). Can the implementation of {{#ask}} make possible such trick that I've unsuccessfully tried to

Re: [SMW-devel] ask query format=template

2007-11-08 Thread cnit
Yes, this appears to be a bug. For a quick workaround, consider using the formats list, ul or ol, all of which also support the template-parameter for formatting (and this one certainly works with SMW1.0). Note that with list, you can also choose the separator between items (parameter sep),

[SMW-devel] restoring XML backup

2007-11-02 Thread cnit
Hi! Are the old MW 1.10/SMW 0.7 XML backups compatible with MW 1.11/SMW 1.0RC1? I am trying to import my backup into the new installation, but it throws such error (smw_error1.txt). After that, I've decided to remove all the Attribute: namespace pages from the dump. Drop all the tables, recreate

Re: [SMW-devel] First release candidate for SMW 1.0 available

2007-10-15 Thread cnit
Hi all, Semantic MediaWiki 1.0 RC1 is now available for download [1]. While this is not the final 1.0 release yet, it already should provide many improvements over SMW0.7, and especially is the recommended version for new installations (upgrading also works well, but do read the INSTALL

Re: [SMW-devel] News on SMW 1.0

2007-10-09 Thread cnit
I am sure they will consider a patch that implements this, if anyone submits it. ;-) I am sure they can create such patch much faster than, for example, myself. Because they write their own code, while others need to hack it. Though I am perfectly aware they can live without such patch, at least

Re: [SMW-devel] News on SMW 1.0

2007-09-26 Thread cnit
Finally, we were rightly asked to provide a parser function for ask (something like {{#ask|...}}). This would yield full template compatibility. The new :: syntax is one step towards this, the better datavalue formatting is another one. What is really missing is the conversion of HTML-query

[SMW-devel] localized dates

2007-04-05 Thread cnit
Greetings, Also I believe that localized translations (eg. SMW_LanguageRu.php and so on) should also provide a PHP-format string to correctly display local dates, according to their uselang variable. My wiki project is multilangual and it uses three different values for uselang (to provide the

[SMW-devel] Image type class for SMW 0.6

2007-04-05 Thread cnit
Greetings, It's turned out to be simliper that I've expected. Here's my quick hack (seems to work, yet probably needs to be improved) to implement image class. Sincerely, Dmitriy SMW_DT_Image.php Description: Binary data -