Favicon

Query for incoming properties with 4store as a datastore causes SMW/MW to crash

Hello,

On SMW 1.7.0 (using Semantic Bundle from 2012-01-09), MW 1.18.1, and
4store 1.1.4, if I execute the following query (for example):

{{#ask: [[-Has address::+]]
}}

I get an error message like this:

Unexpected non-MediaWiki exception encountered, of type "Exception"
exception 'Exception' with message
'SMWExporter::getResourceElementForProperty() can only be used for
user-defined properties.' in
/var/web/common/elements/extensions/SemanticBundle-2012-01-09/SemanticMediaWiki/includes/export/SMW_Exporter.php:229
Stack trace:
#0 /var/web/common/elements/extensions/SemanticBundle-2012-01-09/SemanticMediaWiki/includes/storage/SMW_SparqlStoreQueryEngine.php(704):
SMWExporter::getResourceElementForProperty(Object(SMWDIProperty))
#1 /var/web/common/elements/extensions/SemanticBundle-2012-01-09/SemanticMediaWiki/includes/storage/SMW_SparqlStoreQueryEngine.php(489):
SMWSparqlStoreQueryEngine->buildPropertyCondition(Object(SMWSomeProperty),
'result', NULL)
#2 /var/web/common/elements/extensions/SemanticBundle-2012-01-09/SemanticMediaWiki/includes/storage/SMW_SparqlStoreQueryEngine.php(471):
SMWSparqlStoreQueryEngine->buildSparqlCondition(Object(SMWSomeProperty),
'result', NULL)
#3 /var/web/common/elements/extensions/SemanticBundle-2012-01-09/SemanticMediaWiki/includes/storage/SMW_SparqlStoreQueryEngine.php(316):
SMWSparqlStoreQueryEngine->getSparqlCondition(Object(SMWSomeProperty))
#4 /var/web/common/elements/extensions/SemanticBundle-2012-01-09/SemanticMediaWiki/includes/storage/SMW_SparqlStore.php(288):
SMWSparqlStoreQueryEngine->getInstanceQueryResult(Object(SMWQuery))
#5 /var/web/common/elements/extensions/SemanticBundle-2012-01-09/SemanticMediaWiki/includes/SMW_QueryProcessor.php(395):
SMWSparqlStore->getQueryResult(Object(SMWQuery))
(Continue reading)

Favicon

Cannot query subobjects using 4store as a datastore

Hi,

I have also noticed the same issue that Giovanni raised a few weeks
ago: I get completely blank replies when querying for subobjects using
4store 1.1.4, SMW 1.7.0, and MW 1.18.1. This also affects Internal
Objects using the Semantic Internal Objects extension that came
packaged in the 2012-01-09 Semantic Bundle.

If I revert to default datastore, subobject and internal object
queries work as expected.

Any ideas? Unfortunately, I cannot reproduce on the Referata
scratchpad because it doesn't seem to be using 4store.

Thanks,
Alex
--
Alex M. Hendler
http://ontolawgy.com

On Wed, Jan 4, 2012 at 9:42 PM, solab <info@...> wrote:
> Hi all,
>
> FYI:
> I use the following subobject query:  {{#ask: [[Sandbox#street]]|
> ?street name  |?postcode|?city}}
>
> On my installation the query  gives some results  only if the default
> store is not a rdf store.
>
(Continue reading)

Jude Jonassaint | 4 Feb 16:04
Picon

replace text from a table

In a SMW where people are identified by name we would like to replace
the names with an identifier (could be a number or a string).
Is there a way to take a list (spreadsheet) of the names and
associated new identifiers to globally replace the names in the wiki
with the corresponding identifiers in the wiki?

We would hate to do this one name at a time because that would be
really time consuming.

Jude

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
Yury Katkov | 4 Feb 16:23
Picon

Re: replace text from a table

Hi!
If you user SemanticSignUp or SemanticSocialProfile and/or all users
in a wiki are represented by their pages with SMW-properties than
making such a list is an easy task that can be solved by the query
like this:

{{#ask:[[Category:User]]
|?Username
|?UserId
format=broadtable
}}

Sincrely yours,

-----
Yury Katkov

On Sat, Feb 4, 2012 at 7:04 PM, Jude Jonassaint
<jcjonassaint@...> wrote:
> In a SMW where people are identified by name we would like to replace
> the names with an identifier (could be a number or a string).
> Is there a way to take a list (spreadsheet) of the names and
> associated new identifiers to globally replace the names in the wiki
> with the corresponding identifiers in the wiki?
>
> We would hate to do this one name at a time because that would be
> really time consuming.
>
> Jude
>
(Continue reading)

Jude Jonassaint | 4 Feb 17:30
Picon

Re: replace text from a table

Hi  Yuri:
Thank you. After I reading again the email sent I am think I did not
explain well what I am trying to do.
We have pages that have people name both in the title of the pages and
in the body of the pages. We no longer want the names of the people to
be seen so we would like to replace the name with a new unique string
ID. So we would like to make a table of the names and generate a
corresponding new unique ID for each name. Then we would like to be
able to replace at once all the names we have in the table with the
new unique IDs in the wiki.

Say we have two pages
John Lui - Author 1
Jane Elle - Author 2

we want to change those pages to
AString - Author 1
AdifferentString - Author 2

With the ReplaceText extension I can change "John Lui" everywhere in
the wiki to "AString."
And then do the same for Jane Elle.
Instead, to do the same thing, I would like to use a table like
John Lui | AString
Jane Elle | AdifferentString

Is there a way to do this with an extension or a script?

Jude

(Continue reading)

Yury Katkov | 4 Feb 17:57
Picon

Re: replace text from a table

Hi Jude!
It seems to me that the easiest way to do this task is to write a
wikibot which will give your table as input and will replace all the
occurrences with the replacements in the table.

Here is an information on how to write bots - it's pretty easy and I
write them from time to time for a variety of purposes:
http://www.mediawiki.org/wiki/Help:Bots
http://en.wikipedia.org/wiki/Wikipedia:Creating_a_bot
-----
Yury Katkov

On Sat, Feb 4, 2012 at 8:30 PM, Jude Jonassaint
<jcjonassaint@...> wrote:
> Hi  Yuri:
> Thank you. After I reading again the email sent I am think I did not
> explain well what I am trying to do.
> We have pages that have people name both in the title of the pages and
> in the body of the pages. We no longer want the names of the people to
> be seen so we would like to replace the name with a new unique string
> ID. So we would like to make a table of the names and generate a
> corresponding new unique ID for each name. Then we would like to be
> able to replace at once all the names we have in the table with the
> new unique IDs in the wiki.
>
>
> Say we have two pages
> John Lui - Author 1
> Jane Elle - Author 2
>
(Continue reading)

Jeroen De Dauw | 7 Feb 01:08
Picon
Gravatar

SMW roadmap

Hey all,

I just updated the SMW roadmap with my own TODOs and made some additions such as adding a contact person per task.

http://semantic-mediawiki.org/wiki/Roadmap

This is in part as preparation for the upcoming Google Summer of Code.

If you have plans yourself for making changes to SMW core or have feature suggestions for either SMW or extensions, please list them, together with all the info useful for people that might want to implement them or help out in some way.

Cheers

--
Jeroen De Dauw
http://www.bn2vs.com
Don't panic. Don't be evil.
--

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Semediawiki-devel mailing list
Semediawiki-devel@...
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel
Joel Natividad | 8 Feb 00:45
Picon

How does the LUA scripting project affect SMW?

Folks,
http://www.mediawiki.org/wiki/Lua_scripting, mediawiki will embark on this major effort.

How will this affect SMW and the satellite extensions that revolve around it? 

Best,
Joel
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Semediawiki-devel mailing list
Semediawiki-devel@...
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel
Yaron Koren | 8 Feb 03:30

Re: How does the LUA scripting project affect SMW?

Hi Joel,

That's an interesting question. I would say that there are one and a
half ways in which the SMW world will be affected:

- The half way is that all the #if parser functions can get replaced
with actual "if" statements and the like, which will make templates
that now use #if a lot nicer and more readable. That affects all
templates, whether or not they use SMW.

- The actual way is that Lua will presumably allow for loops within
templates - which would mean that templates could have an unlimited
set of parameters, which might mean that multiple-instance templates
would be unnecessary. That would obviously have to be handled by
Semantic Forms in some way.

There might be other ways I haven't thought of, though.

-Yaron

On Tue, Feb 7, 2012 at 6:45 PM, Joel Natividad
<joel.natividad@...> wrote:
> Folks,
> Per
>  http://developers.slashdot.org/story/12/02/01/1429229/wikipedia-chooses-lua-as-its-new-template-language
>  and
> http://www.mediawiki.org/wiki/Lua_scripting, mediawiki will embark on this
> major effort.
>
> How will this affect SMW and the satellite extensions that revolve around
> it?
>
> Best,
> Joel
>
> ------------------------------------------------------------------------------
> Keep Your Developer Skills Current with LearnDevNow!
> The most comprehensive online learning library for Microsoft developers
> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> Metro Style Apps, more. Free future releases when you subscribe now!
> http://p.sf.net/sfu/learndevnow-d2d
> _______________________________________________
> Semediawiki-devel mailing list
> Semediawiki-devel@...
> https://lists.sourceforge.net/lists/listinfo/semediawiki-devel
>

--

-- 
WikiWorks · MediaWiki Consulting · http://wikiworks.com

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
James Hong Kong | 8 Feb 10:12
Picon

SMW roadmap; HTML content marked up with RDFa tags

Hi,

For future enhancements it should be considered if HTML content should
be marked up with RDFa tags (<div rel="v:address">, <span
property="v:street-address">123 Main St</span> etc.) so that SMW
generated content also supports a machine readable solution for search
engines[1], [2].

[1] http://support.google.com/webmasters/bin/answer.py?hl=en&answer=146861

[2] http://blog.schema.org/2011/11/using-rdfa-11-lite-with-schemaorg.html

Cheers

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d

Gmane