Not logged in : Login

About: VirtDeployLinkedWikiV2     Goto   Sponge   Distinct   Permalink

An Entity of Type : atom:Entry, within Data Space : ods.openlinksw.com associated with source document(s)

AttributesValues
type
Date Created
Date Modified
label
  • VirtDeployLinkedWikiV2
maker
Title
  • VirtDeployLinkedWikiV2
isDescribedUsing
has creator
attachment
  • http://vos.openlinksw.com/wiki/main/VOS/VirtDeployLinkedWikiV2/map1.png
  • http://vos.openlinksw.com/wiki/main/VOS/VirtDeployLinkedWikiV2/result1.png
  • http://vos.openlinksw.com/wiki/main/VOS/VirtDeployLinkedWikiV2/result2.png
  • http://vos.openlinksw.com/wiki/main/VOS/VirtDeployLinkedWikiV2/results3.png
content
  • %META:TOPICPARENT{name="VirtDeployMediaWiki"}% ---+Installing The LinkedWiki Extension Version 2.0.1 Alpha The LinkedWiki extension allows you to embed a SPARQL query and display the results in your wiki page. ---++Prerequisites * A working copy of MediaWiki hosted on Virtuoso. (See [[http://wiki.usnet.private/dataspace/dav/wiki/Main/MediaWikiInstalltionGuide][the installation guide for MediaWiki on Virtuoso]]). ---+++Step 1. Download the Extension. Go to the [[http://www.mediawiki.org/wiki/Extension:LinkedWiki][LinkedWik Extension page]]. Using the links in the box on the right hand side, download the v2.0.1Alpha1 LinkedWiki extension. ---+++Step 2. Extract. Move the downloaded zip file into your MediaWiki extensions folder. You will find this folder in your Virtuoso installation directory/vsp/vad/vsp/MediaWiki/extension. Extract the extension. ---+++Step 3. Enable and Configure. The LinkedWiki extension is enabled by adding the following line to the your Virtuoso installation directory/vsp/vad/vsp/MediaWiki/LocalSettings.php file require_once( "{$IP}/extensions/LinkedWiki/LinkedWiki.php" ); $wgLinkedWikiGraphWiki = 'http://example.org/mydefaultgraphname'; ---++Using LinkedWiki LinkedWiki lets you embed a SPARQL query in a wiki page and display the results as a table. If you have the Widgets extension installed you can also display the results using one of the widgets. ---+++Simple Query Examples A simple query to get all the triples in all the graphs on a specified endpoint looks like this: {{#sparql:select * where { ?x ?y ?z . } LIMIT 5 | endpoint=http://localhost:8890/sparql}} This displays the first 5 triples from the specified endpoint. The results will look something like this: The properties of the current page can be queried using either of the following: {{#sparql:PREFIX a: select * where { a:{{PAGENAMEE}} ?y ?z . } | endpoint = http://localhost:8890/sparql }} or {{#sparql:select * where { ?y ?z . } | endpoint = http://localhost:8890/sparql }} The results will look something like: You can specify which endpoint you want to query so, this example queries the sparql endpoint on dbpedia to find the number of nations participating in each Olympic games: {{#sparql:select distinct ?Games ?Olympiad ?NumberOfNations {?s a . ?s ?Games . ?s ?Olympiad . ?s ?NumberOfNations FILTER (lang(?Games) = "en")} order by ?Games | endpoint = http://dbpedia.org/sparql }} and returns results something like this: ---++Using LinkedWiki with the Widget Extension First ensure you have the Widget Extension installed and configured. You will have to add any widgets that you want to use to display the results. The LinkedWiki extension parses the result set from the sparql query so it becomes a set of key value pairs that are then included as parameters to the widget. So, for example, a query that selects location information as a point would result in a set of parameters something like this. rows.0.point=43.30, 5.38 | rows.1.point=48.83, 2.3 | rows.2.point=49.93, 2.3 The widget must be able to handle parameters of this form. One example is a Google maps widget developed specifically for displaying LinkedWiki results. This widget can be found [[https://0x20.be/Widget:Google_Static_Maps][here]]. To use the widget to display the results from a sparql query on a map you would do something like this {{#wsparql:Google_Static_Maps |query=SELECT ?s ?point ?label WHERE { ?s ?point . ?s a . ?s ?label . FILTER bif:contains(?label, "Olympic and Stadium") . FILTER (lang(?label) ='en') } limit 20 |endpoint = http://dbpedia.org/sparql |defaultcolor=blue |zoom=2 |size=512x512 |maptype=roadmap}} The result will be a map embedded in the wiki page that show the location of Olympic stadia around the world. *
id
  • 6075ed179919cde9833e371f0b8488f9
link
has container
http://rdfs.org/si...ices#has_services
atom:title
  • VirtDeployLinkedWikiV2
links to
atom:source
atom:author
atom:published
  • 2017-06-13T05:42:45Z
atom:updated
  • 2017-06-13T05:42:45Z
topic
is made of
is container of of
is link of
is http://rdfs.org/si...vices#services_of of
is links to of
is creator of of
is atom:entry of
is atom:contains of
Faceted Search & Find service v1.17_git132 as of May 12 2023


Alternative Linked Data Documents: iSPARQL | ODE     Content Formats:   [cxml] [csv]     RDF   [text] [turtle] [ld+json] [rdf+json] [rdf+xml]     ODATA   [atom+xml] [odata+json]     Microdata   [microdata+json] [html]    About   
This material is Open Knowledge   W3C Semantic Web Technology [RDF Data] Valid XHTML + RDFa
OpenLink Virtuoso version 08.03.3332 as of Sep 11 2024, on Linux (x86_64-generic-linux-glibc25), Single-Server Edition (15 GB total memory, 2 GB memory in use)
Data on this page belongs to its respective rights holders.
Virtuoso Faceted Browser Copyright © 2009-2024 OpenLink Software