Open main menu

Extension talk:LinkedWiki

About this board

Warnings when running 'yarn install --production=true'

4
Jukeboksi (talkcontribs)

Using

  • Debian GNU/Linux 9.5
  • Mediawiki 1.31.0
  • LinkedWiki 3.1.1
  • https://nodejs.org/en/10.7.0
  • yarn 1.7.0
  • Composer version 1.6.5 2018-05-04 11:44:59
$ yarn install --production=true
yarn install v1.7.0
info No lockfile found.
[1/4] Resolving packages...
⠁ (node:18055) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
warning grunt > coffee-script@1.10.0: CoffeeScript on NPM has moved to "coffeescript" (no hyphen)
warning grunt-jsonlint > jsonlint > nomnom@1.8.1: Package no longer supported. Contact support@npmjs.com for more info.
[2/4] Fetching packages...
[3/4] Linking dependencies...
warning " > bootstrap@4.1.2" has unmet peer dependency "jquery@1.9.1 - 3".
[4/4] Building fresh packages...
success Saved lockfile.
Done in 1.35s.

----

How to resolve these warnings? Will the LinkedWiki work or be broken if these warnings are not resolved?

Karima Rafes (talkcontribs)

Only the special page "SPARQL editor" works with boostrap. It is "experimental". It works correctly with Chrome but I didn't test with other navigators :-/ I will try to resolve these problems at the next update of the special page.

Jukeboksi (talkcontribs)

I did the following:

yarn add jquery # dependency of bootstrap
yarn add popper.js # dependency of bootstrap
yarn add bootstrap@4.1.2
yarn install --production=true

Should the SPARQL editor work now?

Karima Rafes (talkcontribs)

I didn't test with these version. (JQuery is already in Mediawiki) Say me if you see a bug.

Reply to "Warnings when running 'yarn install --production=true'"

Fatal exception of type "MWException"

4
Legaulph (talkcontribs)
Product Version
MediaWiki 1.30.0
PHP 7.1.8 (apache2handler)
MySQL 5.6.34-log
Semantic MediaWiki 2.5.5
LinkedWiki --> 3.1.1
Apache Jena Fuseki 2.5.0
I'm seeing this error

/* [WmSRZ1TLdhLyhXELv3urDAAAAAg] 2018-01-21 13:11:03: Fatal exception of type "MWException"

  • /

if (window.console && console.error) {console.error("[WmSRZ1TLdhLyhXELv3urDAAAAAg] 2018-01-21 13:11:03: Fatal exception of type \"MWException\"");} mw.loader.implement("ext.LinkedWiki.SparqlParser@0y9y0vq",function($,jQuery,require,module){$(document).ready(function(){sgvizler2.containerDrawAll({googleApiKey:googleApiKey,osmAccessToken:osmAccessToken,path:mw.config.get('wgScriptPath')+"/extensions/LinkedWiki/node_modules/sgvizler2/build/browser"});});}); mw.loader.state({"ext.LinkedWiki.sgvizler2":"error"});

Karima Rafes (talkcontribs)

Have you insert your keys in the file keys.js ?

Legaulph (talkcontribs)

Can I disable the google maps sense I don't use it?

Karima Rafes (talkcontribs)

Normally, sgvizler2 downloads only libs used by the charts in the page. If you don't want use Google and OSM Map, you have always this error ?

Reply to "Fatal exception of type "MWException""
Legaulph (talkcontribs)
I get error:
Category: Pages where template include size is exceeded.
Is there a way to get more results?
Thanks
Karima Rafes (talkcontribs)

May be with the parameter cache. You can disable the cache with the cache parameter. An example : {{#sparql:select * where { ?x ?y ?z . } LIMIT 5|endpoint=https://query.wikidata.org/sparql|cache=no}}

Else this probably a limit in the options of Mediawiki.

Another solution (in last version), your can use a visualization with datatable. The page will be in cache but the navigator will send the query at each time (and without limit).

{{#sparql: select * where { ?x ?y ?z . } LIMIT 15 |endpoint=https://query.wikidata.org/sparql |chart=bordercloud.visualization.DataTable |options=width=100%!height=500px }}

Legaulph (talkcontribs)

It is a MediaWiki issue.
is there a way to get the display LIMIT 15 and the csv to export everything?

Karima Rafes (talkcontribs)

The export in csv is different between databases. For the moment, I convert the HTML table in CSV. You can make a template with a link with good parameters for your database.

If you want generate a link/request by this extension, you can propose a feature and share your link for your database (for example) in the project: https://phabricator.wikimedia.org/tag/mediawiki-extensions-linkedwiki/

(the database has always a limit. This new feature has to use limit and offset in a script php or javascript)

Legaulph (talkcontribs)

Adding this feature would be greate.
The option to preview - limit 15,
download full results in csv, json, rdf.


I do not have access to fabricator to request these features.

Karima Rafes (talkcontribs)

You can login you with your account mediawiki.

Reply to "query with LIMIT 7500"
Legaulph (talkcontribs)
Product	Version 
MediaWiki	1.30.0 
PHP	7.1.8 (apache2handler) 
MySQL	5.6.34-log 
Semantic MediaWiki	2.5.5 
LinkedWiki --> 3.1.1
Apache Jena Fuseki 2.5.0
Using the same query as previous post
I get no results
{{#sparql:
PREFIX property:<http://server.com/index.php/Special:URIResolver/Property-3A>
PREFIX swivt:<http://semantic-mediawiki.org/swivt/1.0#>
PREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT ?supported_by ?Subcategory ?name ?version ?technology_name ?owner ?contact ?publication_date ?publication_status ?support_status ?manufacturer ?start_date ?end_date
WHERE 
{
 ?s ?p ?sub .
            ?cat rdfs:label ?Category .
            ?cat rdfs:label "Technology" .
            FILTER(CONTAINS(STR(?cat), "Category")) .
            ?sub rdfs:subClassOf ?cat .
            ?sub rdfs:label ?Subcategory .
 ?s property:Has_Name ?name .
  ?s property:Has_subobject ?subobject .
  ?subobject property:Has_Version ?version .
  ?subobject property:Technology_Name ?technology_name .
  ?subobject property:Has_Support_Status ?support_status .
  ?subobject property:Has_Start_Date ?start_date .
   ?subobject property:Has_End_Date ?end_date .
   ?subobject property:Supported_By ?supported_by .
    ?s property:OwnedBy ?owner.
    ?s property:PublicationDate ?publication_date .
    ?s property:PublicationStatus ?publication_status .
    ?s property:ManufacturedBy ?manufacturer.
  OPTIONAL {
    ?s property:Contact ?contact.
  }
}
ORDER BY ?name
LIMIT 1000000
|endpoint=http://server:8080/dev/sparql}}
Karima Rafes (talkcontribs)
Legaulph (talkcontribs)
I tried | log=2 and nothing returns.
Extension:LinkedWiki/SPARQL editor: does not exist in my wiki 
Sparql Flint editor gives: Flint Error -> Classes cannot be retrieved. HTTP Status: 0,
RDF test cases gives error: RDFUnit is not installed.
Then I tried Sparql Query interface and get:


Array ( [0] => Error query : PREFIX property: PREFIX swivt: PREFIX rdfs: PREFIX xsd: SELECT ?supported_by ?Subcategory ?name ?version ?technology_name ?owner ?contact ?publication_date ?publication_status ?support_status ?manufacturer ?start_date ?end_date WHERE { ?s ?p ?sub . ?cat rdfs:label ?Category . ?cat rdfs:label "Technology" . FILTER(CONTAINS(STR(?cat), "Category")) . ?sub rdfs:subClassOf ?cat . ?sub rdfs:label ?Subcategory . ?s property:Has_Name ?name . ?s property:Has_subobject ?subobject . ?subobject property:Has_Version ?version . ?subobject property:Technology_Name ?technology_name . ?subobject property:Has_Support_Status ?support_status . ?subobject property:Has_Start_Date ?start_date . ?subobject property:Has_End_Date ?end_date . ?subobject property:Supported_By ?supported_by . ?s property:OwnedBy ?owner. ?s property:PublicationDate ?publication_date . ?s property:PublicationStatus ?publication_status . ?s property:ManufacturedBy ?manufacturer. OPTIONAL { ?s property:Contact ?contact. } } ORDER BY ?name LIMIT 1000000 |endpoint=http://awsacrnva1061.jnj.com:8080/dev/sparql}} Error endpoint: Error http_response_code: 0 Error message: Error number: 3 Error message: malformed [1] => Error query : PREFIX property: PREFIX swivt: PREFIX rdfs: PREFIX xsd: SELECT ?supported_by ?Subcategory ?name ?version ?technology_name ?owner ?contact ?publication_date ?publication_status ?support_status ?manufacturer ?start_date ?end_date WHERE { ?s ?p ?sub . ?cat rdfs:label ?Category . ?cat rdfs:label "Technology" . FILTER(CONTAINS(STR(?cat), "Category")) . ?sub rdfs:subClassOf ?cat . ?sub rdfs:label ?Subcategory . ?s property:Has_Name ?name . ?s property:Has_subobject ?subobject . ?subobject property:Has_Version ?version . ?subobject property:Technology_Name ?technology_name . ?subobject property:Has_Support_Status ?support_status . ?subobject property:Has_Start_Date ?start_date . ?subobject property:Has_End_Date ?end_date . ?subobject property:Supported_By ?supported_by . ?s property:OwnedBy ?owner. ?s property:PublicationDate ?publication_date . ?s property:PublicationStatus ?publication_status . ?s property:ManufacturedBy ?manufacturer. OPTIONAL { ?s property:Contact ?contact. } } ORDER BY ?name LIMIT 1000000 |endpoint=http://server.com:8080/dev/sparql}} Error endpoint: Error http_response_code: 200 Error message: Error parsing XML result:Invalid document end Response : )

Legaulph (talkcontribs)

I also get this [WmCwqj5oEE9sAnCYT03MSgAAAAo] 2018-01-18 14:35:23: Fatal exception of type "Exception"

Karima Rafes (talkcontribs)

RDFUnit is experimental for the moment. It's disable by default.

You need to re-install the extension. There are missing files.

Upload files here (backup before your precedent extension.json) : Special:ExtensionDistributor/LinkedWiki

Legaulph (talkcontribs)

I don't see the special page SPARQL Editor

Legaulph (talkcontribs)

Found it

Legaulph (talkcontribs)

Results are the same

Karima Rafes (talkcontribs)
Legaulph (talkcontribs)
Hi Karima,
Thank you for your help I was missing some things and also had a typo.
Everything is working now.
Karima Rafes (talkcontribs)

Great ! Bye.

Exception encountered, of type "ConfigException"

3
2001:638:902:200B:3C29:9F63:C644:4361 (talkcontribs)

We get an error about media wiki not beeing able to find the configuration parameters as expected, when saving a page

Exception encountered, of type "ConfigException"

[31907a3f] /index.php?title=…&action=submit   ConfigException from line 53 of /srv/www/…/includes/config/GlobalVarConfig.php:    GlobalVarConfig::get: undefined option: 'endpointDefault'
Backtrace:
#0 /srv/www/…/extensions/LinkedWiki/parser/SparqlParser.php(29): GlobalVarConfig->get(string)
#1 [internal function]: SparqlParser::render(Parser, string, string)
…

We get a similar error for the Special:LinkedWikiConfig page just with:

…
[90d212b0] /Special:LinkedWikiConfig   ConfigException from line 53 of /srv/www/…/includes/config/GlobalVarConfig.php: GlobalVarConfig::get: undefined option: 'endpoint'
…

We have the extension.json at its original place.

2001:638:902:200B:3C29:9F63:C644:4361 (talkcontribs)

It is MediaWiki 1.25.2 and LinkedWiki Extension 3.0.0 Alpha

Karima Rafes (talkcontribs)

By default the endpointDefault is "http://www.wikidata.org". If you change this value, you need to insert, a new endpoint in the list. For exemple :

"endpointDefault": "http://myendpoint.org",

So in list of endpoints, you have to add your default endpoint (with the good config ) :

"endpoint": {

...

   "http://myendpoint.org": {

    "isReadOnly": true,

...

        "endpoint": "http://myendpoint.org/sparql",

...

        "storageMethodClass": "SimpleStorageMethod"

      },

}

If you have again a problem: send me a copy of you extension.json by email to karima.rafes@gmail.com

Bye

Karima

Legaulph (talkcontribs)

I'm running some more test and have come up with this issue. I have for a current versions

MediaWiki 1.25.5
Semantic MediaWiki 2.3
Page Forms 4.0.2-alpha
LinkedWiki	2.1.0 alpha 1

Query that works in these versions

{{#sparql:
PREFIX property:<http://server.com/index.php/Special:URIResolver/Property-3A>
PREFIX swivt:<http://semantic-mediawiki.org/swivt/1.0#>
PREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT ?supported_by ?Subcategory ?name ?version ?technology_name ?owner ?contact ?publication_date ?publication_status ?support_status ?manufacturer ?start_date ?end_date
WHERE 
{
 ?s ?p ?sub .
            ?cat rdfs:label ?Category .
            ?cat rdfs:label "Technology" .
            FILTER(CONTAINS(STR(?cat), "Category")) .
            ?sub rdfs:subClassOf ?cat .
            ?sub rdfs:label ?Subcategory .
 ?s property:Has_Name ?name .
  ?s property:Has_subobject ?subobject .
  ?subobject property:Has_Version ?version .
  ?subobject property:Technology_Name ?technology_name .
  ?subobject property:Has_Support_Status ?support_status .
  ?subobject property:Has_Start_Date ?start_date .
   ?subobject property:Has_End_Date ?end_date .
   ?subobject property:Supported_By ?supported_by .
    ?s property:OwnedBy ?owner.
    ?s property:PublicationDate ?publication_date .
    ?s property:PublicationStatus ?publication_status .
    ?s property:ManufacturedBy ?manufacturer.
  OPTIONAL {
    ?s property:Contact ?contact.
  }
}
ORDER BY ?name
LIMIT 1000000
|endpoint=http://server:8080/dev/sparql}}

Does not work in these versions:

MediaWiki 1.28.0
Semantic MediaWiki 2.4.4
Page Forms 4.0.2-alpha
LinkedWiki	3.0.0 Alpha (bec49e4)

} ORDER BY ?name LIMIT 10 Error endpoint: http://server:8080/db1/sparql Error http_response_code: 200 Error message: Error parsing XML result:Not well-formed (invalid token) Response : {

Karima Rafes (talkcontribs)

What is the name and the version of your database ? It's the same version between the two tests ?

Can you execute this command ?

./sparql/query -v -d -r -e http://server:8080/dev/sparql -f yourQuery.rq

I think your database sends a json and not a XML. I need to check if the parameter accept=application/sparql-results+xml is in the HTTP's header. This command can print the header in the log. (I think...)

Thanks Karima

Legaulph (talkcontribs)

Yes the same version and actually the same server Apache Jena Fuseki Version 2.3.0.

Karima Rafes (talkcontribs)

Ok I found the problem. I disabled an old fix for Fuseki. I thought this difference in the protocol was from the past but the problem of content negotiation is always present.

Sorry. Now, you can download the last version in the master.

Karima

148.177.1.212 (talkcontribs)

Thank you

Legaulph (talkcontribs)

Hi Karima, Maybe I'm doing something wrong Still getting the error:

Error http_response_code: 200 Error message: Error parsing XML result:Not well-formed (invalid token) Response :

Query is a simple one

{{#sparql:
PREFIX property:<http://server.com/index.php/Special:URIResolver/Property-3A>
PREFIX swivt:<http://semantic-mediawiki.org/swivt/1.0#>
PREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT ?name 
WHERE 
{
?s property:Has_Name ?name .

}
LIMIT 15
|endpoint=http://server.com:8080/ds/sparql}}
}}

I have added to the extension.json

        "http://server.com": {
        "endpoint": "http://server.com:8080/ds/sparql",
        "typeRDFDatabase": "fuseki",
        "HTTPMethodForQuery": "GET"
      },
Karima Rafes (talkcontribs)

Have you update the extension ? You can check if you have the last version in the file : endpoint.php See the last update in the file endpoint

If you want to do a query with your configuration in the file extension.json, you can write :

{{#sparql:
select * where 
 { ?x ?y ?z . } 
LIMIT 15
|config=http://server.com
}}

(the special page : SPARQL editor helps to test your configuration)

Bye

Legaulph (talkcontribs)

I had to remove

"typeRDFDatabase": "fuseki",

Thanks

Gstupp (talkcontribs)

MediaWiki 1.28.0

PHP 5.6.28 (fpm-fcgi)

MySQL 5.6.34

ICU 52.1

Lua 5.1.5

Page Forms 4.1 (22cc121) 15:25, 9 March 2017

Semantic MediaWiki 2.5.0

When I install LinkedWiki (v3.0.0), all of the links in Special:Properties turn red and no new properties show up in Special:Properties upon creation with Special:CreateProperty. As soon as I remove wfLoadExtension( 'LinkedWiki' ); from LocalSettings, the properties work again...

Karima Rafes (talkcontribs)
Kghbln (talkcontribs)

I believe that the solution should somehow also be documented on the extensions page.

Reply to "Installation break properties"

Download CSV with url in the results

7
Legaulph (talkcontribs)
Karima Rafes (talkcontribs)

It's probably an old version. Can you use the last version of this extension for your Wiki ?

Legaulph (talkcontribs)

Thanks for the quick response, I thought I had the latest version.

Now the query does not work correctly.

<!--TECHNOLOGY ROADMAP  END-->
<!--STANDARD CATEGORY BEGIN-->
{{#ifeq: {{{cat|}}} | Standard | 
{{#sparql:
PREFIX property:<http://server/index.php/Special:URIResolver/Property-3A>
PREFIX swivt:<http://semantic-mediawiki.org/swivt/1.0#>
PREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT ?Name ?Owner ?Publication_Status ?Link 
WHERE
        {
            ?Link ?p ?cat .
            ?cat rdfs:label ?Category .
            ?cat rdfs:label "Standard" .
            FILTER(CONTAINS(STR(?cat), "Category")) .
            ?Link property:Has_Name ?Name .
            FILTER regex(?Name, "{{{standard|}}}", "i") .
            ?Link property:PublicationStatus ?Publication_Status .
            {{#if: {{{standard_owner|}}} | ?Link property:OwnedBy ?Owner . FILTER regex(?Owner, "{{{standard_owner|}}}", "i") .  | OPTIONAL { ?Link property:OwnedBy ?Owner .} }} 
            {{#if: {{{standard_contact|}}} | ?Link property:Contact ?Contact . FILTER regex(?Contact, "{{{standard_contact|}}}", "i") . | OPTIONAL { ?Link property:Contact ?Contact . } }} 
}
ORDER BY ?Name
LIMIT 1000000
|endpoint=http://server:8080/db1/sparql}}
 | }}
<!--STANDARD CATEGORY END-->

Error http_response_code: 200 Error message: Error parsing XML result:Not well-formed (invalid token) Response : {

This has been working fine until I'm trying to upgrade to mw 1.27, SMW 2.4.1

the display result was ok until I upgraded LinkedWiki just now, now I get the above error.

Legaulph (talkcontribs)

I have a new install of mediawiki 1.28.0
getting error Notice: Undefined variable: wgResourceModules in /app/datamap/mw/extensions/LinkedWiki/LinkedWiki.php on line 72

Fatal error: Unsupported operand types in /app/datamap/mw/extensions/LinkedWiki/LinkedWiki.php on line 72

Karima Rafes (talkcontribs)

Ok I look the problem this weekend. Karima

Karima Rafes (talkcontribs)

wgResourceModules is not in the last version.

Can you test with the last version ? I test your precedent query. (sorry I didn't see this message before) It works with my database.

What is your database ? Probably, there is a problem of configuration.[1] If your database have a extern IP, I can try to test.

[1] https://www.mediawiki.org/wiki/Extension:LinkedWiki/Configuration

Bye Karima

Legaulph (talkcontribs)

Undefined variable: Is fixed now For some reason this no longer works

{{#ifeq: {{{cat|}}} | Standard | 
{{#sparql:
PREFIX property:<http://server/index.php/Special:URIResolver/Property-3A>
PREFIX swivt:<http://semantic-mediawiki.org/swivt/1.0#>
PREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT ?Name ?Owner ?Publication_Status ?Link 
WHERE
        {
            ?Link ?p ?cat .
            ?cat rdfs:label ?Category .
            ?cat rdfs:label "Standard" .
            FILTER(CONTAINS(STR(?cat), "Category")) .
            ?Link property:Has_Name ?Name .
            FILTER regex(?Name, "{{{standard|}}}", "i") .
            ?Link property:PublicationStatus ?Publication_Status .
            {{#if: {{{standard_owner|}}} | ?Link property:OwnedBy ?Owner . FILTER regex(?Owner, "{{{standard_owner|}}}", "i") .  | OPTIONAL { ?Link property:OwnedBy ?Owner .} }} 
            {{#if: {{{standard_contact|}}} | ?Link property:Contact ?Contact . FILTER regex(?Contact, "{{{standard_contact|}}}", "i") . | OPTIONAL { ?Link property:Contact ?Contact . } }} 
}
ORDER BY ?Name
LIMIT 1000000
|endpoint=http://server:8080/db1/sparql}}
 | }}

Unexpected non-MediaWiki exception while saving a page

3
89.233.55.64 (talkcontribs)

Hello!
I get the follwing exception when I try to save a page to my wiki (MediaWiki 1.17,SMW 1.5.6, LinkedWiki 0.1.0, PHP 5.3.2). My sparql endpoint is local and works fine.

Unexpected non-MediaWiki exception encountered, of type "Exception"
exception 'Exception' with message '0--
1--Error unknown.
' in /var/www/vhosts/..../extensions/LinkedWiki/lib/4store/SparqlTools.php:111
Stack trace:
#0 /var/www/vhosts/..../extensions/LinkedWiki/class/SMW_LinkedWikiStore.php(113): SparqlTools::insert('<http://example...', 'http://sci-clas...', 'http://sci-clas...', NULL)
#1 /var/www/vhosts/..../extensions/LinkedWiki/class/SMW_LinkedWikiStore.php(75): SMW_LinkedWikiStore->_update(Object(SMWSemanticData))
#2 /var/www/vhosts/..../extensions/SemanticMediaWiki/includes/SMW_ParseData.php(252): SMW_LinkedWikiStore->updateData(Object(SMWSemanticData))
#3 /var/www/vhosts/...../extensions/SemanticMediaWiki/includes/SMW_ParseData.php(406): SMWParseData::storeData(Object(ParserOutput), Object(Title), true)
#4 [internal function]: SMWParseData::onLinksUpdateConstructed(Object(LinksUpdate))
#5 /var/www/vhosts/..../includes/Hooks.php(158): call_user_func_array(Array, Array)
#6 /var/www/vhosts/..../includes/LinksUpdate.php(83): wfRunHooks('LinksUpdateCons...', Array)
#7 /var/www/vhosts/..../includes/Article.php(3646): LinksUpdate->__construct(Object(Title), Object(ParserOutput))
#8 /var/www/vhosts/..../includes/Article.php(2225): Article->editUpdates('{{#sparql:selec...', '', false, '20110708102128', 14, true)
#9 /var/www/vhosts/..../includes/Article.php(1976): Article->doEdit('{{#sparql:selec...', '', 98)
#10 /var/www/vhosts/.../includes/EditPage.php(1076): Article->updateArticle('{{#sparql:selec...', '', false, false, false, '')
#11 /var/www/vhosts/.../includes/EditPage.php(2656): EditPage->internalAttemptSave(false, false)
#12 /var/www/vhosts/.../includes/EditPage.php(415): EditPage->attemptSave()
#13 /var/www/vhosts/.../includes/EditPage.php(296): EditPage->edit()
#14 /var/www/vhosts/.../includes/Wiki.php(522): EditPage->submit()
#15 /var/www/vhosts/.../includes/Wiki.php(69): MediaWiki->performAction(Object(OutputPage), Object(Article), Object(Title), Object(User), Object(WebRequest))
#16 /var/www/vhosts/.../index.php(114): MediaWiki->performRequestForTitle(Object(Title), Object(Article), Object(OutputPage), Object(User), Object(WebRequest))
#17 {main}

But, even though I get this exeption, if I go back to my page, the queries are ok and the expected results are presented.
What'swrong?
Thank you in advance!

141.26.94.83 (talkcontribs)

Well, it works if you put in comment the following line:
//$smwgDefaultStore = "SMW_LinkedWikiStore";

Karima Rafes (talkcontribs)

XML error: "Undeclared entity warning" at line 174 (parsing as UTF-8)

2
Fcarpani (talkcontribs)

Hello. When I try a local query:

{{#sparql:select * where { ?x ?y ?z .} LIMIT 5|debug=yes}}

I can get this error: Error #sparql :Array


Also I could get the following data (touching some code for debugging):

=====LinkedWiki: Using ARC2_SPARQLXMLResultParser =====Linked wiki Error: Array (

   [0] => Array
       (
           [0] => XML error: "Undeclared entity warning" at line 174 (parsing as UTF-8)
       )

)

Can you give some line about that?

Thanks.

Fernando Carpani
Karima Rafes (talkcontribs)
Return to "LinkedWiki" page.