Skip to content

Commit 1a235f3

Browse files
authored
Add missing config info from MediaWiki.org
1 parent fb12a80 commit 1a235f3

1 file changed

Lines changed: 58 additions & 0 deletions

File tree

README.md

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,64 @@ minutes.
6767
namely to go to the `Special:RDFIOAdmin` page on your wiki, and hit the "setup"
6868
button, to initialize the MySQL tables needed by the ARC2 library that RDFIO
6969
builds upon.
70+
71+
#### Optional but recommended steps
72+
73+
* Edit the MediaWiki:Sidebar page and add the following wiki snippet, as an extra menu (I use to place it before just the "* SEARCH" line), which will give you links to the main functionality with RDFIO from the main links in the left sidebar on the wiki:
74+
75+
```
76+
* Semantic Tools
77+
** Special:RDFIOAdmin|RDFIO Admin
78+
** Special:RDFImport|RDF Import
79+
** Special:SPARQLEndpoint|SPARQL Endpoint
80+
** Special:SPARQLImport|SPARQL Import
81+
```
82+
83+
* Create the article "MediaWiki:Smw_uri_blacklist" and make sure it is empty (you might need to add some nonsense content like `{{{<!--empty-->}}}`).
84+
85+
#### Test that it works
86+
87+
* Access the **SPARQL endpoint** at http://[url-to-your-wiki]/Special:SPARQLEndpoint
88+
* Access the **RDF Import page** at http://[url-to-your-wiki]/Special:RDFImport
89+
* Access the **SPARQL Import page** at http://[url-to-your-wiki]/Special:SPARQLImport
90+
* Optionally, if you want to really see that it works, try adding some semantic data to wiki pages, and then check the database (using phpMyAdmin e.g.) to see if you get some triples in the table named `arc2store_triple`.
91+
92+
### Additional configuration
93+
94+
These are some configuration options that you might want to adjust to your specific use case. That goes into your `LocalSettings.php` file. Find below a template with the default options, which you can start from, add to your `LocalSettings.php` file and modify to your liking:
95+
96+
```php
97+
# ---------------------------------------------------------------
98+
# RDFIO Configuration
99+
# ---------------------------------------------------------------
100+
# An associative array with base uris as keys and corresponding
101+
# prefixes as the items. Example:
102+
# array(
103+
# "http://example.org/someOntology#" => "ont1",
104+
# "http://example.org/anotherOntology#" => "ont2"
105+
# );
106+
# $rogBaseURIs = array();
107+
# ---------------------------------------------------------------
108+
# Query by /Output Equivalent URIs SPARQL Endpoint
109+
# (overrides settings in HTML Form)
110+
#
111+
# $rogQueryByEquivURI = false;
112+
# $rogOutputEquivURIs = false;
113+
#
114+
# $rogTitleProperties = array(
115+
# 'http://semantic-mediawiki.org/swivt/1.0#page',
116+
# 'http://www.w3.org/2000/01/rdf-schema#label',
117+
# 'http://purl.org/dc/elements/1.1/title',
118+
# 'http://www.w3.org/2004/02/skos/core#preferredLabel',
119+
# 'http://xmlns.com/foaf/0.1/name',
120+
# 'http://www.nmrshiftdb.org/onto#spectrumId'
121+
# );
122+
# ---------------------------------------------------------------
123+
# Allow edit operations via SPARQL from remote services
124+
#
125+
# $rogAllowRemoteEdit = false;
126+
# ---------------------------------------------------------------
127+
```
70128

71129
Dependencies
72130
------------

0 commit comments

Comments
 (0)