[SMW-devel] optimizing SMW

2010-03-01 Thread don undeen
hi all,
I've got a semantic mediawiki installation with about
100,000 pages and growing,  236k rows in smw_ids, and 646k rows in
pagelinks

running on Windows Server 2008,
MediaWiki 1.13.5
PHP 5.3.1
MySQL 5.1.41
SMW 1.4.2
SMWHalo 1.4.5


I'm getting to the point where page loads are starting to be pretty slow 
sometimes, and occasionally timeout.

Granted,
I'm using lots of external data calls, and those calls cause new pages
to be created in the background, and those new pages beget more new
pages, etc etc. So there's a spidering growth going on as well. I'm
doing plenty of caching of my service calls, using memcached.

obviously
it's a sort of complicated setup, and I'm noticing that even normal
queries of the db (using phpmyadmin) are taking quite a while. 

I don't have a lot of experience with db
optimization; I'm wondering if there's anything that you guys do to
your wiki to make it run better, any defaults I can change, indexes to
create, etc (I did add an index on a temp table being created in code,
and that helped in one area, so I know things like that can be done).

Also, if there's any good tools you use for profiling either the php or the 
mysql?

I've used xdebug and wincachegrind for php profiling; has anyone tried MonYog:
http://www.webyog.com/en/

for mysql profiling? And other tools you like that I can use in a windows env? 
Or maybe just some general pointers on what to look for when trying to improve 
performance?

I know this is vague; maybe there's a good thread/link out there already for 
this topic? I haven't seen it.


thanks for all your help and hard work!

don undeen
Metropolitan Museum of Art--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel


Re: [SMW-devel] optimizing SMW

2010-03-01 Thread don undeen
all great advice, thanks!
yeah, my jobqueue does get ridiculous, because I'm using externalData calls, 
and properties that automatically create pages, which have their own 
externalData calls, etc etc. All managed basically through the refreshLinks and 
runJobs maintenance scripts. So I've got the job rate set to 0, and I've got 
scheduled jobs running to take care of that. Right now I'm running refreshLinks 
and runJobs in multiple perpetual loops, hoovering up more external data. Then 
occasionally I stop those processes, to see how the performance is doing.
So I guess running those maintenance scripts is going to cause some stress that 
affects the performance of page loads, and general mysql access, no? Once my 
dataset is a little more stable, I'll reduce the maintenance script frequency, 
and be able to do some more profiling.

Questions:
refreshLinks2.php : what's that about? I don't see that in my codebase; maybe 
it's a version thing?

I didn't realize MW had its own profiling framework. I'll have to dig into that 
for sure. I had been using xdebug and wincachegrind, to some effect.



aslo, could you explain a bit more about one of the tables in my database was 
created with the latin1 charset,
while the rest were in binary, which made the use of indexes useless. 

I've got tables with collations: binary (Innodb), latin1_swedish_ci(MyIsam) , 
and a couple in utf8_bin (MyIsam) . How does this make the indexes not work?

Sorry if any of these questions have been covered elsewhere. Feel free to tell 
me to google it, or toss a link my way, if you want.


thanks again!

Don Undeen




From: Thomas Fellows thomas.fell...@gmail.com
To: don undeen donund...@yahoo.com
Cc: smw list semediawiki-devel@lists.sourceforge.net
Sent: Mon, March 1, 2010 4:48:26 PM
Subject: Re: [SMW-devel] optimizing SMW

Hey -

Something you can try out that helped me out of a large smw-timeout issue was 
actually really just related to a large MW issue, and MW's profiling turned up 
the answer.

http://www.mediawiki.org/wiki/How_to_debug#Profiling

In my case, the Job Queue was what was killing my performance - templates that 
affected 100,000+ pages were trying to get run off the queue (refreshLinks2), 
and that just ended in a timeout for the user.  Turning the job rate to 0 
solved it. (Have to set up chron job to run the queue overnight).

In your case, check out how long everything is taking using the profiler, will 
be easier to pinpoint the time hog this way, though I'm sure others might have 
better suggestions.  As far as MySQL query optimisation, there are lots of good 
articles on the explain syntax out there.  Another problem I encountered 
(though assuredly rare) was that one of the tables in my database was created 
with the latin1 charset, while the rest were in binary, which made the use of 
indexes useless.  The explain command turned that one up for me.

Hope it was at least a little bit helpful, and goodluck

-Tom


On Mon, Mar 1, 2010 at 4:26 PM, don undeen donund...@yahoo.com wrote:

hi all,
I've got a semantic mediawiki installation with about
100,000 pages and growing,  236k rows in smw_ids, and 646k rows in
pagelinks

running on Windows Server 2008,
MediaWiki 1.13.5
PHP 5.3.1
MySQL 5.1.41
SMW 1.4.2
SMWHalo 1.4.5


I'm getting to the point where page loads are starting to be pretty slow 
sometimes, and occasionally timeout.

Granted,
I'm using lots of external data calls, and those calls cause new pages
to be created in the background, and those new pages beget more new
pages, etc etc. So there's a spidering growth going on as well. I'm
doing plenty of caching of my service calls, using memcached.

obviously
it's a sort of complicated setup, and I'm noticing that even normal
queries of the db (using phpmyadmin) are taking quite a while. 

I don't have a lot of experience with db
optimization; I'm wondering if there's anything that you guys do to
your wiki to make it run better, any defaults I can change, indexes to
create, etc (I did add an index on a temp table being created in code,
and that helped in one area, so I know things like that can be done).

Also, if there's any good tools you use for profiling either the php or the 
mysql?

I've used xdebug and wincachegrind for php profiling; has anyone tried MonYog:
http://www.webyog.com/en/

for mysql profiling? And other tools you like that I can use in a windows env? 
Or maybe just some general pointers on what to look for when trying to improve 
performance?

I know this is vague; maybe there's a good thread/link out there already for 
this topic? I haven't seen it.


thanks for all your help and hard
 work!

don undeen
Metropolitan Museum of Art
--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel

[SMW-devel] possible bug in SemanticResultsFormat/exhibit code

2010-05-03 Thread don undeen
hey guys,
I've been working on some stuff in SemantciResultsFormat, in the Exhibit code,
And I think  I found a bug when creating a template for a lens for the map view.


I made a template like this:

{{{label}}}

Consists of: {{{Consists of}}}br 
Made By: {{{Made by}}}br 
[[image:{{{Has image url}}}]]
again: {{{label}}}

and when I load the map page, the map doesn't render.

There's a javascript error:

test is null
on SRF_Exhibit.js, line 93.

This is happening, because of this code, in SRF_Exhibit.php, around line 292

if 
(preg_match_all(/[{][{][{][1-9A-z\:\|\/\=\-[:space:]]*[}][}][}]/u,$lenswikitext,$matches))
 {
foreach($matches as $match){
foreach($match as $value){
$strippedvalue = trim($value,{});
$lenswikitext = str_replace($value,'div 
class=inlines 
id=lenscontent'.$lenscounter.''.$this-encodePropertyName(strtolower(str_replace(\n,,$strippedvalue))).'/div',$lenswikitext);
$lenscounter++;
}
}
}



problem here, is if you have the same {{{variable}}} appearing twice.
The regex finds it twice, and loops over it twice
the replacement will only happen once, on the first pass,
but the lenscounter gets incremented twice.

So when the javascript code uses the lenscounter var to iterate over the divs, 
there are some ids for which there's no corresponding div. 

When this happens the code fails, and you get no map.

also, multiple divs get created with the same id, which probably also isn't 
good.

I had a simple fix for this: just testing if the var 'test' is null before 
trying to do anything with it. But maybe that's not the best fix.

Just letting you know. Let me know if you have any questions, or want my fix.

thanks!
--
___
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel


Re: [SMW-devel] SparqlExtension

2010-05-05 Thread don undeen
sorry guys, responded to the wrong thread!





From: don undeen donund...@yahoo.com
To: Samuel Lampa samuel.lamp...@rilnet.com; 
semediawiki-devel@lists.sourceforge.net
Sent: Wed, May 5, 2010 12:55:34 PM
Subject: Re: [SMW-devel] SparqlExtension


looks interesting!
can you tell me if Woogle indexes the RENDERED pages (like a site crawler), or 
if it indexes the db.
my primary requirement is that it indexes the Rendered pages (ie, all the 
imported external data). This could use internal wiki functionality, or actual 
spidering.





From: Samuel Lampa samuel.lamp...@rilnet.com
To: semediawiki-devel@lists.sourceforge.net
Sent: Wed, May 5, 2010 11:38:02 AM
Subject: Re: [SMW-devel] SparqlExtension

Thanks Laurent and Alfredas for the info.

Will try to look closer at it asap, in case we could make use or take
into account, this functionality in the GSoC about RDF import/export in
SMW.

Regarding how to name URI:s on import/export we had some ideas for
this, which we described briefly described in the project application.
(See 
http://saml.rilspace.com/content/gsoc-proposal-general-rdf-exportimport-in-semantic-mediawiki
 )

Cheers
Samuel

On 05/05/2010 12:35 AM, Laurent Alquier wrote: 
Synchronization to Jena is possible using the Triple Store
Connector from SMW+/Halo. 

As with RAP (the default triple store provided with SMW),
synchronization only goes one way. You cannot import new triples from
the store back into the wiki. I am not sure how that would look like
anyway (if that were possible, I hope there would be ways to customize
the way those triples looked on the page).

Still... one way sync with a triple store is a huge step towards data
integration. We are using ours in many ways already.

- Laurent


On Tue, May 4, 2010 at 3:33 PM, Samuel Lampa
 samuel.lamp...@rilnet.com wrote:

This is interesting news.

Got some questions regarding the synchronization:

Would it be possible to import/export general RDF from/to Jena to/from
SMW, using the synchronization? (i.e. loading Jena with the RDF to
import, and then synchronize)? If so, how are wiki articles for the
imported resources named (assuming one article is created for each URI
in the RDF)? Is the original base URI retained somehow? And for the
other way around; data going from SMW to Jena, which base URI:s are
used to create the triples in Jena?

Kind Regards
Samuel Lampa
 



On 05/04/2010 01:38 PM, Alfredas Chm wrote:
 
Hi,

We've just released a beta of Extension:SparqlExtension. The
extension integrates
SMW with a triplestore and is a light-weight, open-source alternative
to Halo triplestore connector.

While tested with Joseki and Jena TDB, it's generic enough that with a
little coding
people will be able to hook up other triplestores as well. It's still
beta, but in our own experience it's rather stable, and we hope to get
feedback about the aspects that need to be improved.

All the best,

Alfredas
PhD @ TUDelft
Netherlands



-- 
Samuel Lampa
Degree project student - M.Sc. Biotechnology
Project blog: http://saml.rilspace.com
Supervisor: Egon Willighagen - http://chem-bla-ics.blogspot.com
Bioclipse group - http://www.bioclipse.net
Dept. of Pharm. Biosciences, Uppsala University, Sweden

--

___
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel




-- 
- Laurent Alquier
http://www.linfa.net


--


___
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel



-- 
Samuel Lampa
Degree project student - M.Sc. Biotechnology
Project blog: http://saml.rilspace.com
Supervisor: Egon Willighagen - http://chem-bla-ics.blogspot.com
Bioclipse group - http://www.bioclipse.net
Dept. of Pharm. Biosciences, Uppsala University, Sweden
--
___
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel


Re: [SMW-devel] search extension development

2010-06-11 Thread don undeen

cool, I'll be interested in checking that out.
For me, being able to do faceted searching on the free text results is 
important. Ontoprise, if you're listening ... :)
The paradigm that makes sense to my users seems to be something like the itunes 
faceted browsing interface.
Yeah, I think paralax is also a good example.

I can wait a few months, and Ontoprise, if you need any help to speed things 
along, let me know. I've been wanting to get into their codebase more, anyways.

Philip?





From: Laurent Alquier lalqu...@gmail.com
To: don undeen donund...@yahoo.com
Cc: smw dev list semediawiki-devel@lists.sourceforge.net
Sent: Fri, June 11, 2010 4:33:09 PM
Subject: Re: [SMW-devel] search extension development

Hi Don

If you can wait for a few months, Ontoprise has announced work on a faceted 
browsing interface for SMW.  
I am sure Philip or someone else from Ontoprise will comment on that :)

Woogle4MW has a lot of intriguing features (such as feedback on searches and 
wanted links). I am in the middle of evaluating it on our wiki.

I would love to see something like Parallax 
(http://www.freebase.com/labs/parallax/ ) as a faceted search / query 
interface... which is close to what you are talking about with Exhibit result 
formats.

- Laurent



On Jun 11, 2010, at 3:57 PM, don undeen wrote:

Hi all, 
I've been experimenting with various search tools for SMW, and there's a lot a 
very cool features distributed amongst them.

What I'd like to work on, is bring the features I like the most, together into 
one tool.

What I've been digging lately:
1. Woogle4Mediawiki : this is the best indexer/free text search I've used so 
far. I like that it indexes the rendered page, which is necessary for all my 
externalData-built pages. And I've been happy with the kind of results I get, 
the ranking, etc. It works as a replacement to the existing search box.
2. Semantic Results Format, with the Simile/Exibit/Facet Result filtering. To 
me, this is totally awesome, and the best way to leverage all this semantic 
information in my pages.


Here's how I'd really like my searching/filtering to work:

1.   A free-text search, like already exists, which uses woogle for the 
results.
2.   Then, on the results page, I’d like to see the individual results, 
along with facets for particular properties.  I’d like to use those facets to 
filter the search results.
3.   I’ll need to also be able to PICK which properties I want to use as 
facets, depending on the results returned.
4.   I may want to display particular properties for each returned page as 
well


This functionality already exists, separately in different modules:
“Ask query”: syntax let’s me decide which terms I want to use as facets, and 
which terms I want to display
“Semantic Results Format” with “Exhibit” : handles the display of the facets, 
and the filtering, using AJAX
“Woogle4Mediawiki” : handles the free-text search.


What could be the best way to intergrate the intelligence of these various 
modules?
I was thinking, one possibility, could be to extend the #ask query, to support 
a free-text search, which leverages woogle4mediawiki for that part of it, then 
uses those results to get the requested properties (using ASK syntax), passes 
through to Semantic Results Format, etc. 



What do you all think? Has work like this already been done? Are there 
existing function hooks I can tie in to? I wouldn't want to reinvent the wheel.


Any comments, advice, criticism, etc greatly appreaciated.


cheers!
Don undeen
Metropolitan Museum of Art



--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo___
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo___
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel


Re: [SMW-devel] SemanticWiki Form - dropdown not working

2010-08-12 Thread don undeen
they way I've handled this in the past (and if you look around, you'll see this 
done on other forms), with other listboxes, is that I move the selected items 
to 
the TOP of the listbox. 

It may break the order, but I think it's often worth it.





From: Yaron Koren yaro...@gmail.com
To: Deuser, Kristi L kristi.deu...@mercy.net
Cc: semediawiki-devel@lists.sourceforge.net 
semediawiki-devel@lists.sourceforge.net
Sent: Thu, August 12, 2010 12:13:10 PM
Subject: Re: [SMW-devel] SemanticWiki Form - dropdown not working

Hi,

Cool. There's no way to do that in SF, unfortunately - I don't even know if 
it's 
possible to do in HTML/Javascript. The two solutions I can think of are to use 
the checkboxes input instead (remember that one? :) ), or to have a an 
explanatory note near that input in the form, reminding users to scroll down.

By the way, for your information (and anyone else's), this whole thread would 
have belonged better on the semediawiki-user mailing list.

-Yaron


On Thu, Aug 12, 2010 at 11:57 AM, Deuser, Kristi L kristi.deu...@mercy.net 
wrote:

That solved the issue!
 
One more question I have: 
I have a long list of items in a listbox. Once the user has entered a value is 
there a way to focus the listbox on the first item they selected when they 
click 
the Edit Form tab? Currently it displays the top of the listbox and is 
confusing 
to users since it looks like no value is selected. When really there are 
selected values further down in the list but they have to scroll down to see 
them.
 
Thank you,
Kristi
 
From:Yaron Koren [mailto:yaro...@gmail.com] 
Sent: Wednesday, August 11, 2010 4:18 PM
To: Deuser, Kristi L
Cc: semediawiki-devel@lists.sourceforge.net
Subject: Re: [SMW-devel] SemanticWiki Form - dropdown not working
 
Hi,
 
If it's showing up as a group of checkboxes, then the form must think that 
this 
field is meant to hold a list of values; i.e., the field in the template has 
#arraymap called on it. Is that true? If so, then what you probably want is a 
'listbox', not a 'dropdown', input type.
 
-Yaron
On Wed, Aug 11, 2010 at 4:37 PM, Deuser, Kristi L kristi.deu...@mercy.net 
wrote:
No matter what I try when I use the inputtype of dropdown it shows as a list 
of 
checkboxes. Please advise. I’ve been researching for days with no luck.
 
This syntax:
{{{field|MTS Area|input type=dropdown|values=test1,test3}}}
 
Shows as a list of checkboxes
This e-mail contains information which (a) may be PROPRIETARY IN NATURE OR
OTHERWISE PROTECTED BY LAW FROM DISCLOSURE, and (b) is intended only for the
use of the addressee(s) named above. If you are not the addressee, or the
person responsible for delivering this to the addressee(s), you are notified
that reading, copying or distributing this e-mail is prohibited. If you have
received this e-mail in error, please contact the sender immediately.

--
This SF.net email is sponsored by

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
___
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel



-- 
WikiWorks · MediaWiki Consulting · http://wikiworks.com
This e-mail contains information which (a) may be PROPRIETARY IN NATURE OR
OTHERWISE PROTECTED BY LAW FROM DISCLOSURE, and (b) is intended only for the
use of the addressee(s) named above. If you are not the addressee, or the
person responsible for delivering this to the addressee(s), you are notified
that reading, copying or distributing this e-mail is prohibited. If you have
received this e-mail in error, please contact the sender immediately.



-- 
WikiWorks · MediaWiki Consulting · http://wikiworks.com
--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev ___
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel


[SMW-devel] extenstion development; processing rendered wiki text.

2010-09-08 Thread don undeen
Hey all,
I've been toying with the idea of making an extension, that would allow me to 
analyze the text on a wiki page, and produce properties from that analysis. One 
example could be, sending the text to openCalais, and which does semantic 
analysis. More likely would be my own internal entity recognition.


This would require access to the rendered content (I use a lot of templates), 
within some sort of function hook.

The way I imagine it working, is there would be some parser function, like 
{{#analyzetext:calais}} at the bottom of the page, which would be replaced with 
the property statements produced from the analysis.


Could someone point me to the right hooks to look for, that could give me the 
scope I need to do this?
I've created plenty of parserfunctions, but they typically deal with the data 
within the parser function call. The difference here is I want access to the 
processed and rendered (well, rendered templates, not the rendered html, I 
think) text of the entire page, instead.

Of course, I'd welcome any comments on a better way to accomplish my goal 
(doing 
full-text analysis of a wiki page, conditionally)

thanks all!

don--
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd___
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel


[SMW-devel] Deleted pages still showing up in query results

2010-09-30 Thread don undeen
Hi all,
I'm running a wiki with quite a lot of pages (individual art objects),
and I recently ran some batch processes to delete a bunch of these objects,
using the deleteBatch.php script.

This worked, in that the pages are now deleted.
However, I have some queries on pages that are still showing those pages, 
albeit 
with red links.

In other words, the wiki knows the pages don't exist, but is showing the 
pages 
in search results anyways.

I've tried running maintenance/refreshLinks.php, as well as
extensions/SemanticMediaWiki/maintenance/SMW_refreshData.php


yet still those pages show up. The data for those pages is still in the SMW 
tables, but not the the page table.

Is there some other way to Purge those deleted files? I've heard about the 
purgeOnDelete extension, which I may try out, but these pages are already 
deleted.

any ideas?

Thanks!
--
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev___
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel


Re: [SMW-devel] Deleted pages still showing up in query results

2010-10-05 Thread don undeen
thanks for the clarification, Markus; I understand now why those bad links are 
showing up.
However, I do have multiple property checks on those items, and they're still 
showing up:
{{#ask:
[[Category:E22 1.Art Object]]
[[Modification date::+]] 
[[IsVirtualObject::true]]
}}

I'm running the Data Repair and Upgrade now; hopefully that will do the trick. 





From: Markus Krötzsch mar...@semantic-mediawiki.org
To: Kevin Jones kevi...@gmail.com
Cc: don undeen donund...@yahoo.com; smw dev list 
semediawiki-devel@lists.sourceforge.net
Sent: Tue, October 5, 2010 6:24:40 AM
Subject: Re: [SMW-devel] Deleted pages still showing up in query results

== Why and when non-existing pages may occur in SMW query results ==

In principle, it is possible that SMW queries show pages that do not have text 
(that is don't exist). The reason is that SMW needs to consider non-existing 
pages as well, for instance if some property of Type:Page is assigned a value 
of 
a page that does not exist, then the assignment still must be stored. This is 
one reason why SMW creates internal IDs for non-existing pages as well.

Normally, these pages should not appear in any query, since they do not satisfy 
normal query conditions. They have no properties (not even a Modification date) 
and they have no categories either. The only way in which they can be selected 
is by issuing namespace queries: they have a namespace based on their page 
title. The easiest current workaround to protect namespace queries against such 
results is to add the condition [[Modification date::+]] which is true exactly 
for those pages that exist.

If non-existing pages still appear in a query that has conditions beyond 
namespace filters, then there is an inconsistency in the database that should 
be 
fixed by repairing the data (using the web interface, and possibly runJobs.php 
for speeding things up).

Completely purging all non-existing pages from SMW's tables is currently only 
possible by deleting and rebuilding the tables as described on the repairing 
SMW documentation page (this requires a command line script). Since SMW needs 
internal page IDs for numerous purposes, it is not easy to see if a page is 
really no longer needed anywhere, and this is why SMW does not purge obsolete 
page ID records during its normal operation.

I remark that this behaviour is specific to the SMWSQLStore2 storage backend. 
It 
is an implementation issue of this particular DB organisation which uses 
internal IDs for more efficient querying.

Cheers,

Markus


On 01/10/2010 01:54, Kevin Jones wrote:
 Don,
 
 I just ran into the same issue literally a couple hours ago. You have to
 go to Special:SMWAdmin and click Start Updating Data. This will add
 all the pages in the wiki to the job queue so that they can be
 reanalyzed. If you want this change to take effect immediately, I
 recommend running runJobs.php from the maintenance directory.
 
 Hope this helps!
 
 Kevin J.
 
 On Thu, Sep 30, 2010 at 5:25 PM, don undeen donund...@yahoo.com
 mailto:donund...@yahoo.com wrote:
 
 Hi all,
 I'm running a wiki with quite a lot of pages (individual art objects),
 and I recently ran some batch processes to delete a bunch of these
 objects,
 using the deleteBatch.php script.
 
 This worked, in that the pages are now deleted.
 However, I have some queries on pages that are still showing those
 pages, albeit with red links.
 
 In other words, the wiki knows the pages don't exist, but is
 showing the pages in search results anyways.
 
 I've tried running maintenance/refreshLinks.php, as well as
 extensions/SemanticMediaWiki/maintenance/SMW_refreshData.php
 
 yet still those pages show up. The data for those pages is still in
 the SMW tables, but not the the page table.
 
 Is there some other way to Purge those deleted files? I've heard
 about the purgeOnDelete extension, which I may try out, but these
 pages are already deleted.
 
 any ideas?
 
 Thanks!
 
 
--
 Start uncovering the many advantages of virtual appliances
 and start using them to simplify application deployment and
 accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
 ___
 Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
 mailto:Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel
 
 
 
 
 --
 Start uncovering the many advantages of virtual appliances
 and start using them to simplify application deployment and
 accelerate your shift to cloud computing.
 http://p.sf.net/sfu/novell-sfdev2dev
 
 
 
 ___
 Semediawiki-devel mailing list
 Semediawiki

[SMW-devel] Interest in SMW in Museum/Cultural sector

2010-11-04 Thread don undeen
Hi all,
I just thought I'd give you an update on some presentations I did this past 
week 
in the museum/cultural sector on SMW, and the excellent response I've been 
receiving there.

The first talk I gave was as the Museum Computer Network Conference, MCN2010. 
The title of the talk was Semantic Mediawiki for Easy Data Integration. My 
general thesis was that a combination of templates, forms, auto-page-creating 
properties, and the ExternalData extension, can allow us to integrate data from 
a variety of sources, without doing any up-front database design or data 
mapping. The talk was short (5 minutes), so I don't have many slides. But after 
the talk was a table session where I answered questions from those in the 
audience who were interested (they had 4 topics to choose from). My table was 
by 
far the most populated, i'd say about 30 people from museums and cultural 
institutions around the world were very interested, and engaged me with 
challenging questions regarding this approach. Museums have a big job trying to 
communicate information with each other regarding their objects; a typical 
project is very task-specific (say, a particular website or research project), 
and involves massive data transfer, as well as data standards negotiation, 
target database design, data mapping, and vendor relationships. Lots of museums 
don't have the resources to do it at all. They really liked the idea that a SMW 
installation could be a low barrier-to-entry sandbox where they could put all 
this data together and see how well it integrates. 

I didn't try to say this is your data integration app, but rather this is a 
tool that let's you SEE the data AS you're doing the planning.
The reason I played down the enterprise-level quality of SMW is that frankly I 
don't have good data on scalability. Museums have a LOT of data, and I don't 
have the resources here to really scale out my wiki that large. Plus I haven't 
resolved some bugs, usability, and UI issues; that may be my fault (not keeping 
up with all the upgrades), or rough edges in SMW.

Just letting you all know that the interest is there in this industry, for this 
problem space. If someone can demonstrate scalability and a streamlines user 
experience, they could really do good work with museums. 


I'll be putting together a more detailed document on how I set all this up.


Also, I went to a smaller meeting in Washington DC, to discuss the development 
of a documentation management system for Museum Conservators. Another 
international group, with funding for development. In my own museum, I've been 
using SMW for rapid prototyping and data staging. I'll be using it in this 
project for data staging; but I don't feel that the SMW is flexible enough in 
the UI to use it for app prototyping for this project. Also there are a few 
conflicts between this software's projected workflow, and what SMW supports. 
Again, maybe this will turn out not to be true. But in any case, I'll be 
putting 
the SMW software in front of these heavy-duty knowledge workers (conservators 
are actually scientists with heavy data analysis needs). I'll let you know what 
kind of feedback I get from them.

Again, I'll be putting together a doc (a different one, focused on prototyping) 
 
that describes this software setup in more detail.

anyways, just thought I'd let you know that there's now this new group of 
people 
out there who are using the term Semantic Wiki with a gleam in their eyes. :) 
. And hopefully my institution will be allocating more of my time to work with 
SMW.

Let me know if you've got any questions.

cheers all, and thanks for making me look good!

Don Undeen
Metropolitan Museum of Art
--
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book Blueprint to a 
Billion shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev___
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel


[SMW-devel] Fw: Interest in SMW in Museum/Cultural sector

2010-11-04 Thread don undeen
sorry, meant to send this to the group.
Sorry you're getting it twice, Laurent.




- Forwarded Message 
From: don undeen donund...@yahoo.com
To: Laurent Alquier laur...@alquier.org
Sent: Thu, November 4, 2010 1:51:49 PM
Subject: Re: [SMW-devel] Interest in SMW in Museum/Cultural sector


Hi Laurent,
Sounds like you are doing work very similar to me. I'm also spending quite a 
bit 
of time on customization, upgrades, bugtracking, etc.
Our museum has in the range of 500,000 art objects. To say nothing of the 
number 
of artists, donors, materials used, locations, as well as all the data from 
OTHER museums that would be involved in data integration. PLUS all the 
relations 
between them. 

I'm obviously nowhere near using all of those, and I split my wikis into 
multiple, purpose-oriented wikis. I've got wikis with 800, 1.5k, 26k, and 47k 
pages, and that's not even close to where I need to be. Currently running on 
VMs 
with 4G of ram. On those larger wikis, the queries don't run so well, but at 
least I can view pages.
So when I talk about scaling, that's what I'm dealing with.  potentially on the 
order of millions of pages. Or, at least I need to know how high I can 
reasonably scale, and what hardwares involved.
If I knew that we could spend $X, and then actually be able to fully scale to 
millions of pages, with full querying capabilities, I could probably get that 
money, almost no matter how big X was. This institution finds plenty of money 
for less worthy projects.

But, if the performance degrades geometrically, then there's a hard limit to 
what we can do with any amount of money. 


My problem is, I got my current servers for asking nicely, because they're VMs 
partitioned from a large resource. Without some better information on scaling, 
it's hard for me to get a real budget allocated to experiment.

In any case, I'm getting 3 more VMs shortly (probably need to buy the admin a 
six-pack of Chimay Blue), at which point I can play a bit more with 
configuration and performance. I'm NO sysadmin of any sort,  just now learning 
how to tweak the mysql server.

Which bring me to a question:. say I've got two wikis of equal size, and two 
VMs, on the same physical hardware. Is it better to put both wikis on one 
machine, and both dbs on another, or to put each wiki with its db on the same 
server? I think I just revealed the depth of my ignorance here, but oh well...

Any other easy tweaking advice would be really appreciated. I've played a bit 
with the index buffer size on mysql. Any other ideas?

Don






From: Laurent Alquier laur...@alquier.org
To: don undeen donund...@yahoo.com
Sent: Thu, November 4, 2010 12:47:04 PM
Subject: Re: [SMW-devel] Interest in SMW in Museum/Cultural sector

Hi Don

I have been experimenting a lot with using SMW for Enterprise Data Integration 
in a production environment.

The good news is, like you, I am a convert to how flexible SMW is for data 
integration. At the moment, I am slowly pushing it for 1/ an enterprise 
semantic 
wikipedia and 2/ a gateway to author Linked Data without having to know 
anything 
about RDF and SPARQL (at least, as far as authors of content are concerned).

I have not yet reached the breaking point of SMW on our setup. We are using a 5 
years old server, with a load of about 50 unique visits a day, 4500 pages and 
about 25 active contributors. That's also good news - no need for top of the 
line servers to get a decent amount of work done.

The bad news is that while SMW is indeed very cheap, it comes at the hidden 
cost 
of the need for an almost dedicated resources to tune it, improve it and make 
it 
successful. I am glad that I can patch the code and mold it to the way I want 
it 
to work, but it still requires a lot of attention.

We are using highly customized skins, custom code to improve on existing 
extensions or to simply make them work in our environment. The result is a very 
streamlined experience for users but a lot of work behind the scene as we are 
making it grow.

Regards
- Laurent


On Thu, Nov 4, 2010 at 12:21 PM, don undeen donund...@yahoo.com wrote:

Hi all,
I just thought I'd give you an update on some presentations I did this past 
week 
in the museum/cultural sector on SMW, and the excellent response I've been 
receiving there.

The first talk I gave was as the Museum Computer Network Conference, MCN2010. 
The title of the talk was Semantic Mediawiki for Easy Data Integration. My 
general thesis was that a combination of templates, forms, auto-page-creating 
properties, and the ExternalData extension, can allow us to integrate data 
from 
a variety of sources, without doing any up-front database design or data 
mapping. The talk was short (5 minutes), so I don't have many slides. But 
after 
the talk was a table session where I answered questions from those in the 
audience who were interested (they had 4 topics to choose from). My table  was 
by far the most populated

[SMW-devel] gettin richmedia working with latest upgrades

2010-11-10 Thread don undeen
Hey all,
I'm going through the upgrade slog, and I'm wondering if anyone has any 
experience getting the latest 
Rich Media Extension working with
MW 1.15.5
SMW 1.5.3
SemanticForms 2.0.4

It installs, and when I add the {{RMList|show=True}} template call to a page,
I get the richmedia form, with the Attach File button, 
and clicking on that opens the file upload dialogue, but when I upload file, 
the 
form page goes blank, and firebug gives me the error:
parent.document.getElementById() is null 
http://ssemtestdb00/metwikiupgrade/index.php/Special:UploadWindow Line 79

However, the file actually uploaded, though it's not attached to the page I 
uploaded from in any way.


I know that my versions are totally aligned; but it seems like rolling some 
extensions back to line up, will just put me out of sync with different 
extensions. (Unless someone out there's got a recommended version list I 
could 
go with?) so I'd like to forge ahead and try to fix these issues if possible.

Anyone have any advice for me?

thanks!--
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book Blueprint to a 
Billion shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev___
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel


[SMW-devel] RichMedia extenstion issues

2010-11-16 Thread don undeen
Hey all,
I'm installing richmedia extension, 

version 1.4.1_1
and though I've run all the patches, and I see the attached documents 
interface on my page, clicking  Attach File only causes the page to reload; 
there's no opportunity to upload the file.

In addition, in the wsyswyg editor, I've see the upload media button, but 
clicking on it only produces the javascript error:  

top.fb.loadAnchor is not a function
http://ssemtestdb00/metwikiupgrade/extensions/FCKeditor/plugins/mediaupload/fckplugin.js

Line 36

Any ideas what I can do?
I've got all my smwhalo code from the zip files, here:
http://sourceforge.net/projects/halo-extension/files/



Also, why does the version information for RM say:
(Version 1.4.1_1-for-SMW-1.4.x)
When then documentation says SMW 1.5.x is required?

here's all my version information:

MediaWiki 1.15.3 (r76688) 
PHP 5.2.9 (apache2handler) 
MySQL 5.1.33-community 
Semantic Forms (Version 1.9.1_1)
Character Escapes (Version 0.9.1
Header Tabs (Version 0.8)
ParserFunctions (Version 1.1.1)
Rich Media Extension (Version 1.4.1_1-for-SMW-1.4.x)
Semantic MediaWiki (Version 1.5.1_1)
SMWHalo Extension (Version 1.5.1_4-for-SMW-1.5.1 [B47])
StringFunctions (Version 2.0.3)
SvgFunctions (Version 0.0.1)
[ URL Arguments] (Version 1.0)
Variables (Version 1.3)
ARCLibrary (Version Template:$VERSION [BTemplate:$BUILDNUMBER])
LDAP Authentication Plugin (Version 1.2c)
WYSIWYG extension (Version 1.3.2_1, FCK 2.6.4 Build 21629)


Thanks guys! Once I get all this installed and working, I'll probably package 
up 
the whole thing as a functional, stable set.
--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2  L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev___
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel


[SMW-devel] latest documentation for Maps, SemanticMaps

2010-11-16 Thread don undeen
Hey guys,
Where is the latest documentation on how to use 
Maps and SemanticMaps 0.7.2 ?

the documentation and examples I see here:
http://mapping.referata.com/wiki/Help:Maps

all produce errors for me like:


{{#display_map:
Moscow, Russia
|service=googlemaps
|geoservice=google
}}
produces:
Fatal error: Parameter coordinates must be a valid location.


Thanks!

Don
--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2  L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev___
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel


Re: [SMW-devel] latest documentation for Maps, SemanticMaps

2010-11-16 Thread don undeen
ah, looked at the response, and there was a response code 610.

Which means there was a problem with the API key.
I think previous versions of Maps actually had a popup (may have some from 
google) that said as much.

would be good if this code provided a more accurate error message.




From: Jeroen De Dauw jeroended...@gmail.com
To: don undeen donund...@yahoo.com
Cc: smw dev list semediawiki-devel@lists.sourceforge.net
Sent: Tue, November 16, 2010 3:13:13 PM
Subject: Re: [SMW-devel] latest documentation for Maps, SemanticMaps


The usage hasn't changed, but there appears to be something going wrong with 
the 
geocoding requests. I don't know why -its only occurring some times -so any 
help 
on pinpointing the issue would be appreciated.
Send from my Android phone.
On 16 Nov 2010 20:55, don undeen donund...@yahoo.com wrote:
 Hey guys,
 Where is the latest documentation on how to use 
 Maps and SemanticMaps 0.7.2 ?
 
 the documentation and examples I see here:
 http://mapping.referata.com/wiki/Help:Maps
 
 all produce errors for me like:
 
 
 {{#display_map:
 Moscow, Russia
 |service=googlemaps
 |geoservice=google
 }}
 produces:
 Fatal error: Parameter coordinates must be a valid location.
 
 
 Thanks!
 
 Don
--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2  L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev___
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel


[SMW-devel] __SHOWFACTBOX__ on every page now?

2010-11-18 Thread don undeen
hey,
I just upgraded my wikis, and I've noticed the factbox isn't showing up on all 
my pages anymore, though I have 

$smwgShowFactbox = SMW_FACTBOX_NONEMPTY; 

a bit of digging, and I see that adding __SHOWFACTBOX__ 
to the page, or template, will make the factbox show up.

I'm wondering if there isn't a way to get back to my old default behaviour, of 
having the factbox showing up by default unless I turn it off?

It's a bit of a drag to have to go edit all my pages and templates to get this 
feature back.

Thanks!--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2  L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev___
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel


Re: [SMW-devel] __SHOWFACTBOX__ on every page now?

2010-11-18 Thread don undeen
to answer both emails:
- no, it's just not there without __SHOWFACTBOX__  . I looked in the source; 
it's not just hidden
- __SHOWFACTBOX__ - I can see the factbox. 
- Without __SHOWFACTBOX__ - no factbox.


I can toggle back and forth between those two states, just by adding and 
removing  __SHOWFACTBOX__

The data's all fine; I can query it, view the property pages, etc.

oh, and I do have headertabs installed, which I thought could be it, but the 
behaviour is the same with or without headertabs enables.

Current version info (all the latest supported by SMWHalo)
MW 1.15.3
SMW: 1.5.1.1
SMWHalo Extension (Version 1.5.1_4-for-SMW-1.5.1 [B47])
Rich Media Extension (Version 1.4.1_1-for-SMW-1.4.x)
Header Tabs (Version 0.8)
Semantic Result Formats (Version 1.5.0_1)
Semantic Forms (Version 1.9.1_1) - from Halo
WYSIWYG extension (Version 1.3.2_1, FCK 2.6.4 Build 21629)





From: Markus Krötzsch mar...@semantic-mediawiki.org
To: Jeroen De Dauw jeroended...@gmail.com
Cc: smw dev list semediawiki-devel@lists.sourceforge.net
Sent: Thu, November 18, 2010 12:10:56 PM
Subject: Re: [SMW-devel] __SHOWFACTBOX__ on every page now?

On 18/11/2010 17:00, Jeroen De Dauw wrote:
 Hey,

 I just upgraded my wikis...
 From what to what?

 ...and I've noticed the factbox isn't showing up on all my pages
 anymore...
 Are you sure it's not showing an not that it's there, but without the
 factbox layout? Someone reported an issue with the later in the most recent
 release of SMW when using MW 1.17.

Also, it should be checked if the upgrade may have changed the DB 
back-end so fundamentally that the old data is not yet available in the 
new database structures (e.g. when upgrading form SMWSQLStore to 
SMQSQLStore2). In this case, the setting to show non-empty factboxes 
might work, but SMW might consider the factbox to be empty until the 
data was refreshed. Any change, in particular the change of including 
__SHOWFACTBOX__ would refresh the data and recover the factbox in such a 
case. But removing this directive from the page should still leave the 
factbox displayed then. If this is your problem, use the refresh button 
at Special:SMWAdmin.

Markus

--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2  L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
___
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel
--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2  L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev___
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel


[SMW-devel] having trouble with creates pages with form feature on SMW_refreshdata.php

2010-11-19 Thread don undeen
hey guys,
I'm having some trouble running SMW_refreshData.php on pages with the 
creates pages with form property.

The idea is that if there's a page with a property pointing to a non-existant 
page,
and that property has the property Creates pages with form::blah, 
then a job task will be set up to create a page using form blah, with the 
page 
name of the non-existant page.

Make sense? Anways, when I try to run SMW_refreshData.php, and it encounters 
one 
of those pages with the broken link. I get the error:

Empty $wgTitle in OutputPage::parse
Backtrace:
#0 [internal function]: OutputPage-parse('This is a minor...', true, true)
#1 D:\xampp\htdocs\metwikiupgrade\includes\StubObject.php(58): 
call_user_func_array(Array, Array)
#2 D:\xampp\htdocs\metwikiupgrade\includes\StubObject.php(76): 
StubObject-_call('parse', Array)
#3 [internal function]: StubObject-__call('parse', Array)
#4 D:\xampp\htdocs\metwikiupgrade\includes\GlobalFunctions.php(740): 
StubObject-parse('This is a minor...', true, true)
#5 
D:\xampp\htdocs\metwikiupgrade\extensions\SemanticForms\includes\SF_FormUtils.php(488):
 wfMsgExt('minoredit', Array)
#6 
D:\xampp\htdocs\metwikiupgrade\extensions\SemanticForms\includes\SF_FormPrinter.php(1032):
 SFFormUtils::minorEditInputHTML(false, NULL, Array)
#7 
D:\xampp\htdocs\metwikiupgrade\extensions\SemanticForms\includes\SF_LinkUtils.php(198):
 SFFormPrinter-formHTML('noinclude?Thi...', false, false, NULL, NULL, 'Some 
very long ...', NULL)
#8 
D:\xampp\htdocs\metwikiupgrade\extensions\SemanticForms\includes\SF_LinkUtils.php(149):
 SFLinkUtils::createLinkedPage(Object(Title))
#9 [internal function]: SFLinkUtils::setBrokenLink(Object(SkinOntoSkin3), 
Object(Title), Array, '00.19.13', Array, NULL)
#10 D:\xampp\htdocs\metwikiupgrade\includes\Hooks.php(117): 
call_user_func_array(Array, Array)
#11 D:\xampp\htdocs\metwikiupgrade\includes\Linker.php(222): 
wfRunHooks('LinkEnd', Array)
#12 D:\xampp\htdocs\metwikiupgrade\includes\Linker.php(513): 
Linker-link(Object(Title), '00.19.13', Array, Array, 'broken')
#13 D:\xampp\htdocs\metwikiupgrade\includes\parser\LinkHolderArray.php(233): 
Linker-makeBrokenLinkObj(Object(Title), '00.19.13', '')
#14 D:\xampp\htdocs\metwikiupgrade\includes\parser\LinkHolderArray.php(115): 
LinkHolderArray-replaceInternal('pbr /?/p?...')
#15 D:\xampp\htdocs\metwikiupgrade\includes\parser\Parser.php(4101): 
LinkHolderArray-replace('pbr /?/p?...')
#16 D:\xampp\htdocs\metwikiupgrade\includes\parser\Parser.php(344): 
Parser-replaceLinkHolders('pbr /?/p?...')
#17 
D:\xampp\htdocs\metwikiupgrade\extensions\SemanticMediaWiki\includes\jobs\SMW_UpdateJob.php(60):
 Parser-parse('{{Interactive F...', Object(Title), Object(ParserOptions), 
true, 
true, 3372)
#18 
D:\xampp\htdocs\metwikiupgrade\extensions\SemanticMediaWiki\maintenance\SMW_refreshData.php(170):
 SMWUpdateJob-run()
#19 {main}


I think this is because this is running from a script, and therefor $wgTitle 
isn't set, because $wgTitle is supposed to be the title of the loaded page? is 
that right?

the part that expects the wgTitle to be in place is in the wiki core: 
includes/OutputPage.php
I dont' think I should be changing that.

But looks like that's only called because of the call in SF to
wfMsgExt('minoredit', Array)
Do we need that? 
Or should I spoof up a wgTitle object when I first notice that it's null, 
somewhere in 

SF_LinitUtils.php::createLinkedPage

Any Idea what's up? I'm using the SemanticForms 1.9.1, with the patch from 
Halo, 
just to make things a bit more complicated.

All my other versions of things are in line with the latest stable halo 
releases.


I feel like this may have been something I've fixed in the past, but lost due 
to 
upgrades.
Maybe Yaron remembers something about this...--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2  L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev___
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel


Re: [SMW-devel] having trouble with creates pages with form feature on SMW_refreshdata.php

2010-11-19 Thread don undeen
oh, and when I run maintenance/refreshLinks.php, in main mediawiki directory, 
the createPage jobs get created just fine, and all that passes through the same 
semanticforms code.
So maybe the problem is in SMW...





From: don undeen donund...@yahoo.com
To: smw dev list semediawiki-devel@lists.sourceforge.net
Sent: Fri, November 19, 2010 4:38:01 PM
Subject: having trouble with creates pages with form feature on 
SMW_refreshdata.php


hey guys,
I'm having some trouble running SMW_refreshData.php on pages with the 
creates pages with form property.

The idea is that if there's a page with a property pointing to a non-existant 
page,
and that property has the property Creates pages with form::blah, 
then a job task will be set up to create a page using form blah, with the 
page 
name of the non-existant page.

Make sense? Anways, when I try to run SMW_refreshData.php, and it encounters 
one 
of those pages with the broken link. I get the error:

Empty $wgTitle in OutputPage::parse
Backtrace:
#0 [internal function]: OutputPage-parse('This is a minor...', true, true)
#1 D:\xampp\htdocs\metwikiupgrade\includes\StubObject.php(58): 
call_user_func_array(Array, Array)
#2  D:\xampp\htdocs\metwikiupgrade\includes\StubObject.php(76): 
StubObject-_call('parse', Array)
#3 [internal function]: StubObject-__call('parse', Array)
#4 D:\xampp\htdocs\metwikiupgrade\includes\GlobalFunctions.php(740): 
StubObject-parse('This is a minor...', true, true)
#5 
D:\xampp\htdocs\metwikiupgrade\extensions\SemanticForms\includes\SF_FormUtils.php(488):
 wfMsgExt('minoredit', Array)
#6 
D:\xampp\htdocs\metwikiupgrade\extensions\SemanticForms\includes\SF_FormPrinter.php(1032):
 SFFormUtils::minorEditInputHTML(false, NULL, Array)
#7 
D:\xampp\htdocs\metwikiupgrade\extensions\SemanticForms\includes\SF_LinkUtils.php(198):
 SFFormPrinter-formHTML('noinclude?Thi...', false, false, NULL, NULL, 'Some 
very long ...', NULL)
#8 
D:\xampp\htdocs\metwikiupgrade\extensions\SemanticForms\includes\SF_LinkUtils.php(149):
 SFLinkUtils::createLinkedPage(Object(Title))
#9 [internal function]:  SFLinkUtils::setBrokenLink(Object(SkinOntoSkin3), 
Object(Title), Array, '00.19.13', Array, NULL)
#10 D:\xampp\htdocs\metwikiupgrade\includes\Hooks.php(117): 
call_user_func_array(Array, Array)
#11 D:\xampp\htdocs\metwikiupgrade\includes\Linker.php(222): 
wfRunHooks('LinkEnd', Array)
#12 D:\xampp\htdocs\metwikiupgrade\includes\Linker.php(513): 
Linker-link(Object(Title), '00.19.13', Array, Array, 'broken')
#13 D:\xampp\htdocs\metwikiupgrade\includes\parser\LinkHolderArray.php(233): 
Linker-makeBrokenLinkObj(Object(Title), '00.19.13', '')
#14 D:\xampp\htdocs\metwikiupgrade\includes\parser\LinkHolderArray.php(115): 
LinkHolderArray-replaceInternal('pbr /?/p?...')
#15 D:\xampp\htdocs\metwikiupgrade\includes\parser\Parser.php(4101): 
LinkHolderArray-replace('pbr /?/p?...')
#16 D:\xampp\htdocs\metwikiupgrade\includes\parser\Parser.php(344):  
Parser-replaceLinkHolders('pbr /?/p?...')
#17 
D:\xampp\htdocs\metwikiupgrade\extensions\SemanticMediaWiki\includes\jobs\SMW_UpdateJob.php(60):
 Parser-parse('{{Interactive F...', Object(Title), Object(ParserOptions), 
true, 
true, 3372)
#18 
D:\xampp\htdocs\metwikiupgrade\extensions\SemanticMediaWiki\maintenance\SMW_refreshData.php(170):
 SMWUpdateJob-run()
#19 {main}


I think this is because this is running from a script, and therefor $wgTitle 
isn't set, because $wgTitle is supposed to be the title of the loaded page? is 
that right?

the part that expects the wgTitle to be in place is in the wiki core: 
includes/OutputPage.php
I dont' think I should be changing that.

But looks like that's only called because of the call in SF to
wfMsgExt('minoredit', Array)
Do we need that? 
Or should I spoof up a wgTitle object when I first notice that it's null, 
somewhere in 

SF_LinitUtils.php::createLinkedPage

Any Idea what's up? I'm using the SemanticForms 1.9.1, with the patch from 
Halo, 
just to make things a bit more complicated.

All my other versions of things are in line with the latest stable halo 
releases.


I feel like this may have been something I've fixed in the past, but lost due 
to 
upgrades.
Maybe Yaron remembers something about this...--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2  L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev___
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel


Re: [SMW-devel] having trouble with creates pages with form feature on SMW_refreshdata.php

2010-11-20 Thread don undeen
Thanks for that, Markus.
You say the problem fundamentally is :
either at the inappropriate use of $wgTitle in SF or at the code that calls SF 
in a context that it is not meant to be run in.

I think it's actually:
code that SF calls  in a context that it is not meant to be run in.

Not in front of the code now, but the error crops up in core code (OutputPage 
class), and the fix I did was in core-ish (SMW) code. 

But, SF is attempted to generate a createPage job in this part of the code, 
which involves parsing a page that isn't the current page (since there is no 
page here, we're in a script. So this is a unusual activity i guess.

But portions of the core parsing code  expect to be in the context of a page, 
and are therefore breaking.


So, maybe there's a better way for SF to go about parsing these auto-generated 
pages, but maybe the code didn't expect this kind of use, and doesn't have the 
necessary API and hooks for it. Anyone know?

But in the meantime adding one line in SMW_refreshdata.php is a pretty easy 
thing to do. And really, it's the same thing I see in mediawiki's 
refreshLinks.php script, which is a very similar type of operation. Basically, 
if you're simulating the activities that a page might perform, it makes some  
(hackish) sense to construct the context that the page would operate in.
At least in theory; obviously there could be unintended sideffects; it's better 
to have a layer of code in between the context and the page activity; those 
global variables freak me out.

anyways, I sure appreciate you looking into this.

Don Undeen




From: Markus Krötzsch mar...@semantic-mediawiki.org
To: don undeen donund...@yahoo.com
Cc: smw dev list semediawiki-devel@lists.sourceforge.net
Sent: Sat, November 20, 2010 8:21:41 AM
Subject: Re: [SMW-devel] having trouble with creates pages with form feature 
on SMW_refreshdata.php

On 19/11/2010 21:53, don undeen wrote:
 here I am, posting fixes to my own problems...
 
 in SMW_refreshData.php, around line 166,
 where you see:
  $title = Title::newFromText( $page );
 
 I added after that:
  $wgTitle = $title;
 
 and that seems to take care of it.
 
 This fix could probably go into SF instead, but it's probably appropriate that
 it be on that script; similar code is the MW's refreshLinks.php
 
 anways, if anyone's having a similar problem, there you go.

There is usually a problem if code is relying on $wgTitle. Normally, MediaWiki 
controls what is in $wgTitle, and uses it for its own purposes. There are only 
very few places where extensions can safely work with the contents of this 
variable (for example, SMW uses it to get the extracted semantic data in a hook 
*after* parsing). Note that $wgTitle must never be used during parsing. In this 
situation, the title is obtained from $wgParser-getTitle() only.

Let me be more explicit:

*** $wgTitle must typically not be used in extensions. ***

*** $wgTitle must typically not be set in extensions. ***

Looking into this, I now found a bug in SMW where $wgTitle was set in 
SMWSQLStore2::refreshData(). It is inappropriate and dangerous to set a global 
MediaWiki variable in this place. I have now fixed this. Code that relies on 
$wgTitle being set by a method that is actually meant to provide basic storage 
manipulation operations (independent of the current MW application state) 
should 
urgently reconsider its design assumptions.

The only exception where $wgTitle might be set in extension code is when an 
extension starts new parsing operations, i.e. is at the beginning of MediaWiki 
control flow. This can indeed happen in maintenance scripts (it does in 
refreshLinks.php), but normally not for batch processed pages as in our above 
refresh script. Looking at MediaWiki's scripts, one can see that $wgTitle is 
often set to a place holder value that has no significance to the current task, 
e.g.

./maintenance/runJobs.php:57:
   $wgTitle = Title::newFromText( 'RunJobs.php' );

Summing up: it is neither common nor required to set $wgTitle in extensions or 
in maintenance scripts, unless the respective code is the start of a new global 
processing activity (such as in MW's refreshLinks.php). It is wrong and 
potentially harmful to set $wgTitle in functions that can be called in jobs 
(such as the refreshData function I mentioned above).

I suppose that the problem discussed in this thread ultimately comes from an 
unsuitable access to $wgTitle. Setting the variable in SMW_refreshData.php 
would 
not be wrong (since it is an entry point and $wgTitle was not set before), but 
it would not solve the underlying bug. Indeed, the only thing that happens in 
this script afterwards is that an update job is run. Code in jobs must not 
depend on $wgTitle. Never. Working around the issue in this one place is not 
going to solve it. The issue needs to be addressed at its root instead: either 
at the inappropriate use of $wgTitle in SF or at the code that calls SF

[SMW-devel] RichMedia Javascript prototype errors...

2010-11-24 Thread don undeen
hey all,
I'm trying to get the RichMedia extension up and running.
I've got all the various patches installed, for SemanticForms 1.9.1 and MW core 
(checked all the files and confirmed every patch)

and I can put the RichMedia template on a page,
and when I click  Attach File the richMedia-enable window pops up (with all 
those metadata fields)

but in the background (When the upload window comes up), I get the errors:
element.dispatchEvent is not a function
http://ssemtestdb00.metmuseum.org/metwikiupgrade/extensions/SMWHalo/scripts/prototype.js?207

Line 4071
And
elementClassName is undefined
http://ssemtestdb00.metmuseum.org/metwikiupgrade/extensions/SMWHalo/scripts/prototype.js?207

Line 1837

each appearing twice in a row.

Then, when I select an image to upload, and click upload image, Nothing 
happens, and I see the javascript error:
uncaught exception: [Exception... Component returned failure code: 0x80070057 
(NS_ERROR_ILLEGAL_VALUE) [nsIDOMXPathEvaluator.evaluate]  nsresult: 
0x80070057 
(NS_ERROR_ILLEGAL_VALUE)  location: JS frame :: 
http://ssemtestdb00.metmuseum.org/metwikiupgrade/extensions/SMWHalo/scripts/prototype.js?207
 :: anonymous :: line 1528  data: no]

Line 0

Also appearing twice.
That last error, I can trace back to the execution, in richmedia.js, of 
(in doUpload method)
var sForm = $$('form.createbox')[0]; //array
particularly the $$('form.createbox') bit.

I notice in my source that richmedia.js is being called in twice.
Is that why the error appears twice? I made some modifications so the js file 
is 
only called once, but the error remains.


Anyone have any idea what could be up here?
some sort of extension conflict?  I've tried disabling the usual suspects 
(headertabs, maps, resultsformat, wysiwyg editor) to no avail.

Version info:

MediaWiki 1.15.3 (r76688) 
PHP 5.2.9 (apache2handler) 
MySQL 5.1.33-community 
Semantic Forms (Version 1.9.1_1)
Character Escapes (Version 0.9.1)
External Data (Version 0.6.1)
Header Tabs (Version 0.8)
Maps (Version 0.7.2 rc1)
ParserFunctions (Version 1.1.1)
Rich Media Extension (Version 1.4.1_1-for-SMW-1.4.x)
Semantic MediaWiki (Version 1.5.1_1)
SMWHalo Extension (Version 1.5.1_4-for-SMW-1.5.1 [B47])
StringFunctions (Version 2.0.3)
ARCLibrary (Version Template:$VERSION [BTemplate:$BUILDNUMBER])
LDAP Authentication Plugin (Version 1.2c)
Semantic Maps (Version 0.7.2 rc1)
Semantic Result Formats (Version 1.5.0_1)
Validator (Version 0.4.2 rc1)
Woogle4MediaWiki (Version 1.0-RC2 ($Rev: 3844 $))
WYSIWYG extension (Version 1.3.2_1, FCK 2.6.4 Build 21629)


thanks for your time, and have a happy thanksgiving (to those of you in the 
U.S.)
--
Increase Visibility of Your 3D Game App  Earn a Chance To Win $500!
Tap into the largest installed PC base  get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev___
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel


Re: [SMW-devel] RichMedia Javascript prototype errors... prototype/jQuery conflict

2010-11-24 Thread don undeen


Hi, I've made a little progress here, but it's also raised some more questions 
in my mind.

I was researching the topic of jQuery/Prototype conflicts, and came across this:
http://docs.jquery.com/Using_jQuery_with_Other_Libraries

So, to the doUpload function in richmedia.js, I added the line:

  jQuery.noConflict();

Right at the top of the function call.

and now the upload page seems to work.

Now, I'm not sure that I added that call in the right place to fix every 
instance of possible prototype/jquery conflict, or if this will create other 
problems with other jquery or prototype code, or if it isn't just a symptom of 
some other problem.

what's the current state of jquery/prototype issues in SMW?

thanks for listening!

Don




From: don undeen donund...@yahoo.com
To: smw dev list semediawiki-devel@lists.sourceforge.net
Sent: Wed, November 24, 2010 12:12:31 PM
Subject: RichMedia Javascript prototype errors...


hey all,
I'm trying to get the RichMedia extension up and running.
I've got all the various patches installed, for SemanticForms 1.9.1 and MW core 
(checked all the files and confirmed every patch)

and I can put the RichMedia template on a page,
and when I click  Attach File the richMedia-enable window pops up (with all 
those metadata fields)

but in the background (When the upload window comes up), I get the errors:
element.dispatchEvent is not a function
http://ssemtestdb00.metmuseum.org/metwikiupgrade/extensions/SMWHalo/scripts/prototype.js?207

Line 4071
And
elementClassName is undefined
http://ssemtestdb00.metmuseum.org/metwikiupgrade/extensions/SMWHalo/scripts/prototype.js?207

Line 1837

each appearing twice in a row.

Then, when I select an image to upload, and click upload image, Nothing 
happens, and I see the javascript error:
uncaught exception: [Exception... Component returned failure code: 0x80070057 
(NS_ERROR_ILLEGAL_VALUE) [nsIDOMXPathEvaluator.evaluate]  nsresult: 
0x80070057 
(NS_ERROR_ILLEGAL_VALUE)  location: JS frame :: 
http://ssemtestdb00.metmuseum.org/metwikiupgrade/extensions/SMWHalo/scripts/prototype.js?207
 :: anonymous :: line 1528  data: no]

Line 0

Also appearing twice.
That last error, I can trace back  to the execution, in richmedia.js, of 
(in doUpload method)
var sForm = $$('form.createbox')[0]; //array
particularly the $$('form.createbox') bit.

I notice in my source that richmedia.js is being called in twice.
Is that why the error appears twice? I made some modifications so the js file 
is 
only called once, but the error remains.


Anyone have any idea what could be up here?
some sort of extension conflict?  I've tried disabling the usual suspects 
(headertabs, maps, resultsformat, wysiwyg editor) to no avail.

Version info:

MediaWiki 1.15.3 (r76688) 
PHP 5.2.9 (apache2handler) 
MySQL 5.1.33-community 
Semantic Forms (Version 1.9.1_1)
Character Escapes (Version 0.9.1)
External Data (Version 0.6.1)
Header Tabs (Version 0.8)
Maps (Version 0.7.2 rc1)
ParserFunctions (Version 1.1.1)
Rich Media Extension (Version 1.4.1_1-for-SMW-1.4.x)
Semantic MediaWiki (Version 1.5.1_1)
SMWHalo Extension (Version 1.5.1_4-for-SMW-1.5.1 [B47])
StringFunctions (Version 2.0.3)
ARCLibrary (Version Template:$VERSION [BTemplate:$BUILDNUMBER])
LDAP Authentication Plugin (Version 1.2c)
Semantic Maps (Version 0.7.2 rc1)
Semantic Result Formats (Version 1.5.0_1)
Validator (Version 0.4.2 rc1)
Woogle4MediaWiki (Version 1.0-RC2 ($Rev: 3844 $))
WYSIWYG extension (Version 1.3.2_1, FCK 2.6.4 Build 21629)


thanks for your time, and have a happy thanksgiving (to those of you in the 
U.S.)
--
Increase Visibility of Your 3D Game App  Earn a Chance To Win $500!
Tap into the largest installed PC base  get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev___
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel


[SMW-devel] SMW-DAM integration?

2010-11-30 Thread don undeen
Hi all,
I'm wondering if anyone out there has any experience integrating their wiki 
installation with an existing Digitial Asset Management system?

At my institution, we've got a massive DAM with millions of images. Obviously 
we 
really don't want to import/copy any images into the wiki. 


However, some of the more useful features of image handling in the wiki, such 
as 
the RichMedia tool, WYSIWYG , the image page, etc, all depend on an image being 
uploaded to the wiki.

Currently, when I want to show an image from the DAM in the wiki, I just 
reference the full URL in the wiki text. 

But that doesn't play nice with the WYSIWYG editor.

I've described this problem previously as Being able to use 
externally-referenced images in [[Image tags, but haven't heard any solutions 
yet.

But maybe if I describe it as DAM Integration the importance of this feature 
will seem more apparent, or a different kind of solution will present itself? 
Because I could imagine some sort of proxy could be used to do DAM integration, 
and you still wouldn't need to support External URLs in [[Image tags.

Seems like someone out there must be dealing with this issue. Anyone?



Cheers,
Don Undeen
Metropolitan Museum of Art
--
Increase Visibility of Your 3D Game App  Earn a Chance To Win $500!
Tap into the largest installed PC base  get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev___
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel


Re: [SMW-devel] SMW-DAM integration?

2010-12-01 Thread don undeen
Thanks neill, your project sounds interesting.

We're using Mediabin.Which has an API that I can work with.

when you say you have assets published to a SMW instance, does that mean the 
assets are copied?
I really can't copy the assets; we've got too many of them. They need to live 
in the DAM, and SMW needs to treat them as if they were local.

which is why I was also thinking of the problem as Mediawiki using externally 
referenced images instead of just uploaded images





From: Neill Mitchell ne...@nlkmitchell.com
To: semediawiki-devel@lists.sourceforge.net
Sent: Wed, December 1, 2010 6:45:28 AM
Subject: Re: [SMW-devel] SMW-DAM integration?

Hi Don.

I guess this is all down to what DAM you use. We have a client that uses 
Xinet and so we faced the exact same problem you have. We had to get an 
extension written that integrates with the Xinet Connector API. It was a 
major (and expensive) chunk of work! It allows links to assets stored in 
Xinet to be published to a SMW instance. Had to integrate the security 
as well which was fun.

It is a commercial DAM you are using or home grown?

Regards
Neill.

On 30/11/10 20:39, don undeen wrote:
 Hi all,
 I'm wondering if anyone out there has any experience integrating their
 wiki installation with an existing Digitial Asset Management system?

 At my institution, we've got a massive DAM with millions of images.
 Obviously we really don't want to import/copy any images into the wiki.

 However, some of the more useful features of image handling in the wiki,
 such as the RichMedia tool, WYSIWYG , the image page, etc, all depend on
 an image being uploaded to the wiki.

 Currently, when I want to show an image from the DAM in the wiki, I just
 reference the full URL in the wiki text.
 But that doesn't play nice with the WYSIWYG editor.

 I've described this problem previously as Being able to use
 externally-referenced images in [[Image tags, but haven't heard any
 solutions yet.

 But maybe if I describe it as DAM Integration the importance of this
 feature will seem more apparent, or a different kind of solution will
 present itself? Because I could imagine some sort of proxy could be used
 to do DAM integration, and you still wouldn't need to support External
 URLs in [[Image tags.

 Seems like someone out there must be dealing with this issue. Anyone?


 Cheers,
 Don Undeen
 Metropolitan Museum of Art



 --
 Increase Visibility of Your 3D Game App  Earn a Chance To Win $500!
 Tap into the largest installed PC base  get more eyes on your game by
 optimizing for Intel(R) Graphics Technology. Get started today with the
 Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
 http://p.sf.net/sfu/intelisp-dev2dev



 ___
 Semediawiki-devel mailing list
 Semediawiki-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/semediawiki-devel

--
Increase Visibility of Your 3D Game App  Earn a Chance To Win $500!
Tap into the largest installed PC base  get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
___
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel
--
Increase Visibility of Your 3D Game App  Earn a Chance To Win $500!
Tap into the largest installed PC base  get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev___
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel


Re: [SMW-devel] SMW-DAM integration?

2010-12-01 Thread don undeen
ah ok.
So is there any integration with what MediaWiki thinks of as an Image?

ie, use in an [[Image:: tag?

And it sounds like the information is pushed from the DAM to the wiki, when 
assets are added (Modified? Deleted?) within the DAM?

and all the metadata is stored just in the DAM?





From: Neill Mitchell ne...@nlkmitchell.com
To: don undeen donund...@yahoo.com
Cc: semediawiki-devel@lists.sourceforge.net
Sent: Wed, December 1, 2010 12:54:18 PM
Subject: Re: [SMW-devel] SMW-DAM integration?

Hi Don.

No, it's just a link that is published plus a thumbnail if desired. Then 
when you click on it in the wiki it opens a tab to the DAM page.

Cheers
Neill.
On 01/12/10 15:50, don undeen wrote:
 Thanks neill, your project sounds interesting.

 We're using Mediabin.Which has an API that I can work with.

 when you say you have assets published to a SMW instance, does that mean
 the assets are copied?
 I really can't copy the assets; we've got too many of them. They need to
 live in the DAM, and SMW needs to treat them as if they were local.

 which is why I was also thinking of the problem as Mediawiki using
 externally referenced images instead of just uploaded images


 
 *From:* Neill Mitchell ne...@nlkmitchell.com
 *To:* semediawiki-devel@lists.sourceforge.net
 *Sent:* Wed, December 1, 2010 6:45:28 AM
 *Subject:* Re: [SMW-devel] SMW-DAM integration?

 Hi Don.

 I guess this is all down to what DAM you use. We have a client that uses
 Xinet and so we faced the exact same problem you have. We had to get an
 extension written that integrates with the Xinet Connector API. It was a
 major (and expensive) chunk of work! It allows links to assets stored in
 Xinet to be published to a SMW instance. Had to integrate the security
 as well which was fun.

 It is a commercial DAM you are using or home grown?

 Regards
 Neill.

 On 30/11/10 20:39, don undeen wrote:
   Hi all,
   I'm wondering if anyone out there has any experience integrating their
   wiki installation with an existing Digitial Asset Management system?
  
   At my institution, we've got a massive DAM with millions of images.
   Obviously we really don't want to import/copy any images into the wiki.
  
   However, some of the more useful features of image handling in the wiki,
   such as the RichMedia tool, WYSIWYG , the image page, etc, all depend on
   an image being uploaded to the wiki.
  
   Currently, when I want to show an image from the DAM in the wiki, I just
   reference the full URL in the wiki text.
   But that doesn't play nice with the WYSIWYG editor.
  
   I've described this problem previously as Being able to use
   externally-referenced images in [[Image tags, but haven't heard any
   solutions yet.
  
   But maybe if I describe it as DAM Integration the importance of this
   feature will seem more apparent, or a different kind of solution will
   present itself? Because I could imagine some sort of proxy could be used
   to do DAM integration, and you still wouldn't need to support External
   URLs in [[Image tags.
  
   Seems like someone out there must be dealing with this issue. Anyone?
  
  
   Cheers,
   Don Undeen
   Metropolitan Museum of Art
  
  
  
  
 --
   Increase Visibility of Your 3D Game App Earn a Chance To Win $500!
   Tap into the largest installed PC base get more eyes on your game by
   optimizing for Intel(R) Graphics Technology. Get started today with the
   Intel(R) Software Partner Program. Five $500 cash prizes are up for
 grabs.
  http://p.sf.net/sfu/intelisp-dev2dev
  
  
  
   ___
   Semediawiki-devel mailing list
   Semediawiki-devel@lists.sourceforge.net
 mailto:Semediawiki-devel@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/semediawiki-devel

 --
 Increase Visibility of Your 3D Game App  Earn a Chance To Win $500!
 Tap into the largest installed PC base  get more eyes on your game by
 optimizing for Intel(R) Graphics Technology. Get started today with the
 Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
 http://p.sf.net/sfu/intelisp-dev2dev
 ___
 Semediawiki-devel mailing list
 Semediawiki-devel@lists.sourceforge.net
 mailto:Semediawiki-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/semediawiki-devel
--
Increase Visibility of Your 3D Game App  Earn a Chance To Win $500!
Tap into the largest installed PC base  get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp

Re: [SMW-devel] SMW-DAM integration?

2010-12-01 Thread don undeen
will this then require re-integrating with all the existing extensions that 
handle Images, so these are treat just like Images in their interfaces?
(RichMedia, WYSIWYG editor, etc?)




From: Markus Krötzsch mar...@semantic-mediawiki.org
To: Neill Mitchell ne...@nlkmitchell.com
Cc: don undeen donund...@yahoo.com; semediawiki-devel@lists.sourceforge.net
Sent: Wed, December 1, 2010 1:40:14 PM
Subject: Re: [SMW-devel] SMW-DAM integration?

On 01/12/2010 17:54, Neill Mitchell wrote:
 Hi Don.
 
 No, it's just a link that is published plus a thumbnail if desired. Then
 when you click on it in the wiki it opens a tab to the DAM page.

This sounds as if it could be realised with manageable effort (depending on 
your 
familiarity with the code, of course) by implementing a custom datatype. The 
dataype would interpret inputs as IDs of your external data items (whatever 
format that would be) and produce a proper MediaWiki embedding of these items 
for display. Storing the IDs would be easy (the datatype could keep them as 
strings, i.e. be implemented like Type:String with some additional sanity 
checks, similar to the ones for Type:URL). Looking at a file like 
./includes/datavalues/SMW_DV_URI.php shows that the amount of code needed there 
is limited (this file already includes quite a number of checks, requiring, 
e.g., to analyse the protocol used in a URL). One would also have to register 
the new datatype; an example of this is found in the Semantic Maps datatype for 
geographic coordinates.

The main task would be to endow the new datatype with suitable output functions 
that produce the desired form of embedding in MediaWiki pages. This mainly 
requires that one already has a way of creating the desired output manually by 
writing wikitext -- SMW can not achieve any formatting that is not possible in 
MediaWiki directly, though it can make sure that additional Javascripts or CSS 
styles get loaded (which the user cannot do by just writing MediaWiki text). If 
there is a problem with this, one would first need to create a MediaWiki 
extension (e.g. with a custom-built parser function or parser hook) that is 
powerful enough to build the desired output.

-- Markus

 
 Cheers
 Neill.
 On 01/12/10 15:50, don undeen wrote:
 Thanks neill, your project sounds interesting.
 
 We're using Mediabin.Which has an API that I can work with.
 
 when you say you have assets published to a SMW instance, does that mean
 the assets are copied?
 I really can't copy the assets; we've got too many of them. They need to
 live in the DAM, and SMW needs to treat them as if they were local.
 
 which is why I was also thinking of the problem as Mediawiki using
 externally referenced images instead of just uploaded images
 
 
 
 *From:* Neill Mitchellne...@nlkmitchell.com
 *To:* semediawiki-devel@lists.sourceforge.net
 *Sent:* Wed, December 1, 2010 6:45:28 AM
 *Subject:* Re: [SMW-devel] SMW-DAM integration?
 
 Hi Don.
 
 I guess this is all down to what DAM you use. We have a client that uses
 Xinet and so we faced the exact same problem you have. We had to get an
 extension written that integrates with the Xinet Connector API. It was a
 major (and expensive) chunk of work! It allows links to assets stored in
 Xinet to be published to a SMW instance. Had to integrate the security
 as well which was fun.
 
 It is a commercial DAM you are using or home grown?
 
 Regards
 Neill.
 
 On 30/11/10 20:39, don undeen wrote:
 Hi all,
 I'm wondering if anyone out there has any experience integrating their
 wiki installation with an existing Digitial Asset Management system?
   
 At my institution, we've got a massive DAM with millions of images.
 Obviously we really don't want to import/copy any images into the wiki.
   
 However, some of the more useful features of image handling in the wiki,
 such as the RichMedia tool, WYSIWYG , the image page, etc, all depend on
 an image being uploaded to the wiki.
   
 Currently, when I want to show an image from the DAM in the wiki, I just
 reference the full URL in the wiki text.
 But that doesn't play nice with the WYSIWYG editor.
   
 I've described this problem previously as Being able to use
 externally-referenced images in [[Image tags, but haven't heard any
 solutions yet.
   
 But maybe if I describe it as DAM Integration the importance of this
 feature will seem more apparent, or a different kind of solution will
 present itself? Because I could imagine some sort of proxy could be used
 to do DAM integration, and you still wouldn't need to support External
 URLs in [[Image tags.
   
 Seems like someone out there must be dealing with this issue. Anyone?
   
   
 Cheers,
 Don Undeen
 Metropolitan Museum of Art

[SMW-devel] RDFExport : rendering wikitext

2010-12-02 Thread don undeen
hi All,
I'm working with the RDF export feature, so I can deliver wiki data to 3rd 
Party 
apps.

For example, I've got an essay page, which has content that's contained in the 
Text-type property hasTextContentLeft
, hasTextContentMain, etc

So I was using the RDF Export feature to extract that data from a page.

However, in this essay content, the user may have done any of the formatting 
stuff that one might do with the WYSIWYG editor. For example, adding ''this'' 
to 
make a word italicized.

When the RDF exporter delivers this data, it returns ''this'' . However, it's a 
lot easier on my 3rd party app if it only has to worry about rendering HTML, 
not 
wiki text.

I'm wondering if there's a way to get the rdf exporter to return ithis/i 
instead of ''this'' ?

I'm happy to write some sort of proxy that gets the RDF, then runs the 
individual elements through the parser. But I'd like to reduce the amount of 
overhead, and avoid any extra http calls to the MW api page.


What would be the best way to approach this?

thanks!
--
Increase Visibility of Your 3D Game App  Earn a Chance To Win $500!
Tap into the largest installed PC base  get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev___
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel


Re: [SMW-devel] RDFExport : rendering wikitext

2010-12-07 Thread don undeen
Actually, I was able to accomplish this, with a hack in SMW_OwlExport.php:

in method printExpData
around line 542:
 global $wgParser, $wgTitle;

then around line 577:
$newTextValue = ;
if($object-getDatatype() == 
http://www.w3.org/2001/XMLSchema#string;){
  // donundeen: i think here is where we need to parse 
wikitext.
  // note: this may break something I haven't thought 
of...
  $newTextValue = 
$object-getDataValue()-getShortWikiText();
  $newTextValue = $wgParser-parse( $newTextValue, 
$wgTitle, new ParserOptions)-mText;
  // use this $newTextValue instead of the wikitext. 
Gotta make is XML-safe though!
}else{
  $newTextValue = $object-getName();
}
$this-post_ns_buffer .= '' .
str_replace( array( '', '', '' ), array( 
'amp;', 
'gt;', 'lt;' ), $newTextValue ) .
'/' . $property-getQName() . \n;


I'm not saying for a second that this is the RIGHT way to do it, but it can be 
done. Of course, there could be some nasty side effects I haven't considered 
yet.

Any for me, it doesn't make sense to send wiki-formatted text in an RDF export, 
unless the consumer is another wiki. The RDF export is a service, so there's no 
telling who the consumer will be. I wouldn't expect some random consumer to 
grok 
wikitext, but i could expect it to grok HTML.

Don






From: Benedikt Kaempgen benedikt.kaemp...@kit.edu
To: don undeen donund...@yahoo.com; smw dev list 
semediawiki-devel@lists.sourceforge.net
Sent: Tue, December 7, 2010 2:57:21 PM
Subject: RE: [SMW-devel] RDFExport : rendering wikitext

Hi,

I think, configuring the rdf export to transform content is not possible and
also not its intended purpose. Maybe there is a one-to-one mapping of wiki
syntax to html implemented in a script, somewhere?  If so, you could use it
to do the transformation after the export.

Regards,

Benedikt

--
Karlsruhe Institute of Technology (KIT)
Institute of Applied Informatics and Formal Description Methods (AIFB)

Benedikt Kämpgen
Research Associate

Kaiserstraße 12
Building 11.40
76131 Karlsruhe, Germany

Phone: +49 721 608-7946
Fax: +49 721 608-6580
Email: benedikt.kaemp...@kit.edu
Web: http://www.kit.edu/

KIT – University of the State of Baden-Wuerttemberg and
National Research Center of the Helmholtz Association


-Original Message-
From: don undeen [mailto:donund...@yahoo.com] 
Sent: Thursday, December 02, 2010 6:22 PM
To: smw dev list
Subject: [SMW-devel] RDFExport : rendering wikitext

hi All,
I'm working with the RDF export feature, so I can deliver wiki data to 3rd
Party apps.

For example, I've got an essay page, which has content that's contained in
the Text-type property hasTextContentLeft
, hasTextContentMain, etc

So I was using the RDF Export feature to extract that data from a page.

However, in this essay content, the user may have done any of the formatting
stuff that one might do with the WYSIWYG editor. For example, adding
''this'' to make a word italicized.

When the RDF exporter delivers this data, it returns ''this'' . However,
it's a lot easier on my 3rd party app if it only has to worry about
rendering HTML, not wiki text.

I'm wondering if there's a way to get the rdf exporter to return ithis/i
instead of ''this'' ?

I'm happy to write some sort of proxy that gets the RDF, then runs the
individual elements through the parser. But I'd like to reduce the amount of
overhead, and avoid any extra http calls to the MW api page.


What would be the best way to approach this?

thanks!--
What happens now with your Lotus Notes apps - do you make another costly 
upgrade, or settle for being marooned without product support? Time to move
off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
use, and manage than apps on traditional platforms. Sign up for the Lotus 
Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d___
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel


Re: [SMW-devel] Semantic forms not Edit With Form-ing?

2010-12-08 Thread don undeen
to add a little more detail:
I was lookign at the categorylinks table, and noticed that the category 
information for the new article is dropped, after the page is saved again, or 
if 
I do a runJobs after editing the template (hence causing a SMWUpdatejob)

Any idea why that would happen? Maybe there's an erro in my template code? I 
can't figure it out.
Any and all help would be greatly appreciated.

Thanks very much!






From: don undeen donund...@yahoo.com
To: smw dev list semediawiki-devel@lists.sourceforge.net
Sent: Wed, December 8, 2010 5:33:40 PM
Subject: [SMW-devel] Semantic forms not Edit With Form-ing?


Hey guys,
I've got a simple semantic form and template, which I can use successfully to 
create a new page.
Then, I can click Edit With Form and edit (or not) and re-save the page.
However, once I've done that, I can no longer Edit with form; the link isn't 
there, and when I try to just enter the original edit form form link, I'm 
told 
it's not a valid URL.

Any idea what could be going on? 
Version Info (the latest supported by SMWHalo):
MW 1.15.3 
SF 1.9.1_1 (w/ halo patches)

Header Table 0.6.6
SMW 1.5.1_1 (w/ halo patches)
SMWHalo Version 1.5.1_4-for-SMW-1.5.1 [B47]


My Form Code is:
noinclude
This is the Thematic Tour form.
To create a page with this form, enter the page name below;
if a page with that name already exists, you will be sent to a form to edit 
that 
page.


{{#forminput:form=Thematic Tour}}
/noincludeincludeonly
{{{info|add title=Add a new Thematic Tour|page name=Thematic Tour[Thematic 
Tour 
Name]}}}

div id=wikiPreview style=display: none; padding-bottom: 25px; 
margin-bottom: 
25px; border-bottom: 1px solid #AA;/div
{{{for template|Thematic Tour}}}
{| class=formtable
! Thematic Tour Name:
| {{{field|Thematic Tour Name}}}
|-
! Highlights Objects:
| {{{field|Highlights Objects|autocomplete from url=met_objects}}}
|-
! Related Activities:
| {{{field|Related Activities|input type=textarea}}}
|}
{{{end template}}}

'''Free text:'''

{{{standard input|free text|rows=10}}}


{{{standard input|summary}}}

{{{standard input|minor edit}}} {{{standard input|watch}}}

{{{standard input|save}}} {{{standard input|preview}}} {{{standard 
input|changes}}} {{{standard input|cancel}}}
/includeonly

And My template code is:
noinclude
This is the Thematic Tour template.
It should be called in the following format:
pre
{{Thematic Tour
|Thematic Tour Name=
|Highlights Objects=
}}
/pre
Edit the page to see the template text.
/noincludeincludeonly
__SHOWFACTBOX__

{| class=wikitable
! Thematic Tour Name
| [[ThematicTourName::{{{Thematic Tour Name|}}}]]
|-
! Highlights Objects
| {{#arraymap:{{{Highlights Objects|}}}|,|x|[[HighlightsObject::x]]}}
|-
! Related  Activities
| {{{Related Activities|}}}
|}

[[Category:Thematic Tour]]
/includeonly

Any Ideas?

Thanks all!--
This SF Dev2Dev email is sponsored by:

WikiLeaks The End of the Free Internet
http://p.sf.net/sfu/therealnews-com___
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel


Re: [SMW-devel] Semantic forms not Edit With Form-ing?

2010-12-10 Thread don undeen
interesting. My problem is a bit different, in that when my Edit with form 
link is missing, it's BECAUSE the page isn't showing in the category correctly; 
(there's no entry in categorylinks for this page).

and runJobs.php tends to FIX it, because it creates the missing page. Somehow 
the missing page and the missing category link seem to be related.

Don




From: Neill Mitchell ne...@nlkmitchell.com
To: semediawiki-devel@lists.sourceforge.net
Sent: Thu, December 9, 2010 4:50:19 AM
Subject: Re: [SMW-devel] Semantic forms not Edit With Form-ing?

Hi Don.

I'm seeing something similar. Random pages lose the Edit with Form tab. 
The page is showing in the Category correctly. The category has a 
default form directive.

If I do a raw edit and save the offending page the Edit with Form tab 
re-appears.

Unfortunately I can't see any pattern to it other than it seems to 
happen after running runJobs.php manually.

This has only started happening in the last few months and it is 
occurring on more than one of my sites. The version of MW doesn't seem 
to be the cause. I've seen 1.15.3, 1.15.5 and 1.16 sites doing it. SMW 
version is 1.4.3, 1.5.0 and 1.5.2. SF is always 2.X though.

Sorry I can't be of much help, I'll continue to try to narrow it down. I 
thought I was going mad, so it is interesting that someone else is 
seeing this too.

Cheers
Neill.
On 08/12/10 23:49, don undeen wrote:
 ok, so I ran a bunch of tests, and it seems like,
 if I add a new highlights object object number, and that page doesn't
 exist yet, then the category for that page doesn't get registered, or
 disappears from the categorylinks table, and I don't get an Edit with
 form link.

 that Highlights Object property is one that creates pages with form
 AND has default form so there's a lot going on there that could cause
 screwy behaviour, I bet.

 However, once I do a runJobs, which automatically creates that page, and
 I re-save the original page, I get the categorylinks entry back.

 this seems like a strange edge case, but still, it indicates some wierd
 interactions in the code...

 Don

 
 *From:* don undeen donund...@yahoo.com
 *To:* don undeen donund...@yahoo.com; smw dev list
 semediawiki-devel@lists.sourceforge.net
 *Sent:* Wed, December 8, 2010 6:01:51 PM
 *Subject:* Re: [SMW-devel] Semantic forms not Edit With Form-ing?

 to add a little more detail:
 I was lookign at the categorylinks table, and noticed that the category
 information for the new article is dropped, after the page is saved
 again, or if I do a runJobs after editing the template (hence causing a
 SMWUpdatejob)

 Any idea why that would happen? Maybe there's an erro in my template
 code? I can't figure it out.
 Any and all help would be greatly appreciated.

 Thanks very much!


 
 *From:* don undeen donund...@yahoo.com
 *To:* smw dev list semediawiki-devel@lists.sourceforge.net
 *Sent:* Wed, December 8, 2010 5:33:40 PM
 *Subject:* [SMW-devel] Semantic forms not Edit With Form-ing?

 Hey guys,
 I've got a simple semantic form and template, which I can use
 successfully to create a new page.
 Then, I can click Edit With Form and edit (or not) and re-save the page.
 However, once I've done that, I can no longer Edit with form; the link
 isn't there, and when I try to just enter the original edit form form
 link, I'm told it's not a valid URL.

 Any idea what could be going on?
 Version Info (the latest supported by SMWHalo):
 MW 1.15.3
 SF 1.9.1_1 (w/ halo patches)
 Header Table 0.6.6
 SMW 1.5.1_1 (w/ halo patches)
 SMWHalo /Version 1.5.1_4-for-SMW-1.5.1 [B47]


 My Form Code is:
 noinclude
 This is the Thematic Tour form.
 To create a page with this form, enter the page name below;
 if a page with that name already exists, you will be sent to a form to
 edit that page.


 {{#forminput:form=Thematic Tour}}
 /noincludeincludeonly
 {{{info|add title=Add a new Thematic Tour|page name=Thematic
 Tour[Thematic Tour Name]}}}

 div id=wikiPreview style=display: none; padding-bottom: 25px;
 margin-bottom: 25px; border-bottom: 1px solid #AA;/div
 {{{for template|Thematic Tour}}}
 {| class=formtable
 ! Thematic Tour Name:
 | {{{field|Thematic Tour Name}}}
 |-
 ! Highlights Objects:
 | {{{field|Highlights Objects|autocomplete from url=met_objects}}}
 |-
 ! Related Activities:
 | {{{field|Related Activities|input type=textarea}}}
 |}
 {{{end template}}}

 '''Free text:'''

 {{{standard input|free text|rows=10}}}


 {{{standard input|summary}}}

 {{{standard input|minor edit}}} {{{standard input|watch}}}

 {{{standard input|save}}} {{{standard input|preview}}} {{{standard
 input|changes}}} {{{standard input|cancel}}}
 /includeonly

 And My template code is:
 noinclude
 This is the Thematic Tour template.
 It should be called in the following format:
 pre
 {{Thematic Tour
 |Thematic Tour Name

Re: [SMW-devel] Semantic forms not Edit With Form-ing?

2010-12-10 Thread don undeen
re: having both Has default form and Creates pages with form 
I don't know to what degree you mean shouldn't. If you're speaking of if the 
code supports this, it probably currently doesn't; it's a hack I added by 
commenting out one return false  in SemanticForms\includes\SF_LinkUtils.php, 
in the setBrokenLink functions:

static function setBrokenLink( $linker, $target, $options, $text, $attribs, 
$ret ) {
if ( in_array( 'broken', $options ) ) {
if ( self::createLinkedPage( $target ) ) {
  // commented out by donundeen
  //return true;
}
$link = self::formEditLink( $target );
if ( $link != '' ) {
$attribs['href'] = $link;
}
}
return true;
}

 I suppose it's possible some of my tweaks are causing some of my bugs, but if 
other people are having similar problems, it'll at least give me an idea of 
where to look for solutions.


But in the other terms of shouldn't, as in there's no good reason to do 
that, I'd have to disagree. Creates pages with form  adds rows to runjobs, 
so 
the page will get created at some point in the future, when that job runs. 
Uses 
default form means that page will get created when someone clicks that link, 
ie, right when they need it. I don't see any way that those two things should 
be 
mutually exclusive. The alternative is either:
1. Only use Creates : means while we're waiting for runJobs to do it's thing, 
people will have red links they can't do anything about. Worse, clicking on 
that 
will lead to a blank page, which they may then fill out. Meaning when runjobs 
happens, that page won't get created correctly.
2. Only use default form : means that someone will have to go manually and 
click all those red links to create the pages. That's not a viable option 
either.

So I don't see why you wouldn't support both properties working. Especially 
since it seems to involve commenting out one return false in the code.




From: Yaron Koren yaro...@gmail.com
To: don undeen donund...@yahoo.com
Cc: smw dev list semediawiki-devel@lists.sourceforge.net
Sent: Wed, December 8, 2010 9:36:21 PM
Subject: Re: [SMW-devel] Semantic forms not Edit With Form-ing?

Hi,

I don't know how much I can help you, since you're using a modified version of 
an older version of SF. Hopefully one of the SMW+ people can assist here. I do 
have one question, though: why do you have both Has default form and Creates 
pages with form set for the same property? That shouldn't be done, as far as I 
know.

-Yaron


On Wed, Dec 8, 2010 at 6:49 PM, don undeen donund...@yahoo.com wrote:

ok, so I ran a bunch of tests, and it seems like, 
if I add a new highlights object object number, and that page doesn't exist 
yet, then the category for that page doesn't get registered, or disappears 
from 
the categorylinks table, and I don't get an Edit with form link.


that Highlights Object property is one that creates pages with form AND 
has 
default form so there's a lot going on there that could cause screwy 
behaviour, 
I bet.


However, once I do a runJobs, which automatically creates that page, and I 
re-save the original page, I get the categorylinks entry back.


this seems like a strange edge case, but still, it indicates some wierd 
interactions in the code...


Don




From: don undeen donund...@yahoo.com
To: don undeen donund...@yahoo.com; smw dev list 
semediawiki-devel@lists.sourceforge.net
Sent: Wed, December 8, 2010 6:01:51 PM
Subject: Re: [SMW-devel] Semantic forms not Edit With Form-ing?



to add a little more detail:
I was lookign at the categorylinks table, and noticed that the category 
information for the new article is dropped, after the page is saved again, or 
if 
I do a runJobs after editing the template (hence causing a SMWUpdatejob)

Any idea why that would happen? Maybe there's an erro in my template code? I 
can't figure it out.
Any and all help would be greatly appreciated.

Thanks very much!







From: don undeen donund...@yahoo.com
To: smw dev list semediawiki-devel@lists.sourceforge.net
Sent: Wed, December 8, 2010 5:33:40 PM
Subject: [SMW-devel] Semantic forms not Edit With Form-ing?


Hey guys,
I've got a simple semantic form and template, which I can use successfully to 
create a new page.
Then, I can click Edit With Form and edit (or not) and re-save the page.
However, once I've done that, I can no longer Edit with form; the link isn't 
there, and when I try to just enter the original edit form form link, I'm 
told 
it's not a valid URL.

Any idea what could be going on? 
Version Info (the latest supported by SMWHalo):
MW 1.15.3 
SF 1.9.1_1 (w/ halo patches)

Header Table 0.6.6
SMW 1.5.1_1 (w/ halo patches)
SMWHalo Version 1.5.1_4-for-SMW-1.5.1 [B47]


My Form Code is:
noinclude
This is the Thematic Tour form.
To create a page with this form, enter the page name below;
if a page with that name already exists, you will be sent to a form to edit 
that 
page.


{{#forminput:form=Thematic

Re: [SMW-devel] Modifying SMW search results to include image thumbnails

2010-12-10 Thread don undeen
I've done pretty much what you describe here; using a form and template to get 
custom query results.
I think the problem, though, is that isn't a Search page; it's a report.
 In a search page, the ASK query would be parameterized:

{{#ask:[[Category:Art 
Objects]]|[[description::{{{theSearchTerm}}}]]|link=none|template=Art object 
query}}

And even then, you've got the specify the fields (description), work out the 
wildcard issues, it's only searching semantic properties, etc. 
AND that template/form is just one page; what happens if two people do a search 
at once.
So, I don't this ASK is really appropriate for SEARCH.

a SEARCH page, would use the search input at the top, leverage the existing 
search functionality (all the indexing, full-text searching, etc), and then 
would sort out the results display according to some template.

In my installation, I use the Woogle search extension, because it allows me to 
index the generated page (I use lots of externalData calls), instead of 
indexing 
the page text as stored in the db. And there's been some chatter on putting 
more 
semantic power into the search results. This could involve faceting, output 
templates, etc. That's what I'd like to see happen. Reading through the woogle 
project management site, I've seen this topic raised, and even seen where in 
the 
code this kind of work would go.

Don





From: Yaron Koren yaro...@gmail.com
To: Ian Stokes-Rees ijsto...@alumni.uwaterloo.ca
Cc: semediawiki-devel@lists.sourceforge.net
Sent: Fri, December 10, 2010 12:58:30 PM
Subject: Re: [SMW-devel] Modifying SMW search results to include image 
thumbnails

Hi,

I'm not sure if I fully understood this, but if so, I don't think you need to 
modify the code, or use additional extensions, for that matter. If you have a 
query like:

{{#ask:[[Category:Art objects]]|link=none|template=Art object query}}

...and then, in template Art object query, something like:

[[File:{{{1}}}.jpg|thumb|link={{{1}}}]] [[{{{1}}}]]

...it should work. The key is the link=none, which displays just the name of 
each page, and not a link.

Although really, I would say you should have each page link to its image using 
a 
semantic property, instead of just assuming that it's page name.jpg. Then the 
query could be even easier:

{{#ask:[[Category:Art objects]]|?Has image}}

If I remember correctly, image pages are by default displayed as thumbnails 
within SMW queries.

For your second question - if you're arguing that every image displayed within 
a 
page should by default have a property (like maybe even Has image) pointing 
to 
it, that could be a reasonable feature. Though dates and locations would be a 
lot harder to implement, and probably not all that helpful. That's assuming I 
understood the question correctly.

-Yaron



On Fri, Dec 10, 2010 at 12:33 PM, Ian Stokes-Rees 
ijsto...@alumni.uwaterloo.ca 
wrote:



On 12/10/10 11:52 AM, Jie Bao wrote:
 You can easily do this using templates (e.g. [2]) and icon extension
 [3], for example [1]


Thanks, those are useful.

The main thing for me, however, is that I want the built-in SMW
functionality to automagically have date, image, and location properties
taken into account in the *existing* search functionality, and to
provide those results in timelines, image galleries, and maps.  Even
without that, a great first step would be to have a small image
thumbnail beside every page link that had an image associated with it, and


SMW_DV_WikiPage.php:getLongHTMLText()

really seems to be the best place to make such a change.

Ian


--
Oracle to DB2 Conversion Guide: Learn learn about native support for PL/SQL,
new data types, scalar functions, improved concurrency, built-in packages,
OCI, SQL*Plus, data movement tools, best practices and more.
http://p.sf.net/sfu/oracle-sfdev2dev
___
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel



-- 
WikiWorks · MediaWiki Consulting · http://wikiworks.com
--
Oracle to DB2 Conversion Guide: Learn learn about native support for PL/SQL,
new data types, scalar functions, improved concurrency, built-in packages, 
OCI, SQL*Plus, data movement tools, best practices and more.
http://p.sf.net/sfu/oracle-sfdev2dev ___
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel


[SMW-devel] some html code replaced with eg UNIQ3c4a730b79440c45-headertabs-00000001-QINU

2011-01-26 Thread don undeen
hey all,
I'm wondering if anyone else has seen this:


in some of my templates, I've got html tags; some for layout, like
pre
and
div

and others for functionality, like

headertabs/

however, when I try to load a page with that templte, in place of the pre tag 
and its contents, I see something like:
UNIQ3c4a730b79440c45-pre--QINU 
[what you can't see are the strange special characters on either side of that 
text.
and in place of the headertabs, I see:
UNIQ3c4a730b79440c45-headertabs-0001-QINU
My div tags, however, work fine.

I don't have this problem on some of my other wikis, which are almost 
identically configured
(LocalSettings.php the same)


Has anyone else seen this problem? What's this all about?

Thanks for all your help!

Don Undeen
Metropolitan Museum of Art
--
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d___
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel


Re: [SMW-devel] 6

2011-05-22 Thread don undeen
Test some drugs to help your sexuality!... 
http://www.pogoda.bosport.pl/friends_links.php?omgoogleId=71jh7

--
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its 
next-generation tools to help Windows* and Linux* C/C++ and Fortran 
developers boost performance applications - including clusters. 
http://p.sf.net/sfu/intel-dev2devmay
___
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel


[SMW-devel] Metropolitan museum of Art hiring a SemWeb Developer

2011-11-23 Thread don undeen
Hello, 
Hoping that this isn't a spam, but the Metropolitan Museum of Art's Digital 
Media Department is hiring for an Information Systems Developer.
This position will be involved in advanced data architecture solutions, to 
support a variety of web and in-gallery technology.

This work may entail:
- Setting up and administering triple stores, NoSQL dbs, and CMSs like Drupal
- designing interfaces, modules, and workflows for same
- Implementing collective intelligence algorithms, 
- experimenting with new technologies, developing prototypes and 
proofs-of-concept
- and (to be honest) some drudgery, like data delivery, ETL, and report 
generation

See the application on linkedin, here:
http://www.linkedin.com/jobs?viewJob=jobId=2157751srchIndex=0trk=njsrch_hitsgoback=%2Efjs_information+systems+developer_*1_*1_I_us_*1_*1_1_R_true_*2_*2_*2_*2_*2_*2_*2_*2  

I know many of you do more than just SemWeb work, and many of you are on this 
list because you like to find new ways to tackle vexing problems. That's what 
we're looking for.

If you choose to submit a resume, please send it to the email address provided, 
but also cc me:
don.und...@metmuseum.org

I look forward to hearing from you.

yours,
Don Undeen
Manager, Media Lab
Digital Media Department
Metropolitan Museum of Art--
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d___
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel


[SMW-devel] (no subject)

2012-01-05 Thread don undeen

http://www.echipamentlucru.ro/best_links.php?ylehig=38jvafotoko=478axjca=49

--
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
___
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel