Topic on Extension talk:LinkedWiki

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}}
 | }}