Topic on Extension talk:LinkedWiki

Jump to navigation Jump to search
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.