Semantic Drilldown: Difference between revisions
mNo edit summary |
No edit summary |
||
(24 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{ | {{Mediawiki extension | ||
|name=Semantic Drilldown | |name=Semantic Drilldown | ||
|developers=Yaron Koren, David Loomer | |developers=Yaron Koren, David Loomer | ||
| | |author_location=New York | ||
| | |licences=GPL | ||
| | |description=Semantic Drilldown is an extension to Semantic MediaWiki (SMW) that provides a page for drilling down through a site's data, using categories and filters on semantic properties. The list of pages in each top-level category can be viewed, and for each such category, filters can be created that cover a specific semantic property. If filters exist for a category, users can click on the different possible values for those filters, narrowing the set of results, and thus drill down through the data. | ||
| | |mediawiki=Any recent version | ||
| | |dependencies=Semantic MediaWiki | ||
| | |related=Semantic Forms | ||
| | |languages=Many | ||
| | |status=stable | ||
| | |released=2007/12/01 | ||
| | |last_released=2013/06/01 | ||
| | |last_version=1.2.5 (June 2013) | ||
| | |programming language=PHP | ||
| | |website=http://www.mediawiki.org/wiki/Extension:Semantic_Drilldown | ||
| | |support_website=http://www.mediawiki.org/wiki/Extension:Semantic_Drilldown | ||
|last_edit= | |last_edit=2013/06/26 | ||
}} | }} | ||
{{stub}} | |||
<!-- <pageby nominor="false" comments="false"/> --> | |||
== Introduction == | |||
'''Semantic Drilldown''' is heavily tied in with the [[Semantic MediaWiki]] extension, and is meant to be used for drilling down structured data that has semantic markup. You must have version 1.5 or later of Semantic MediaWiki installed for the Semantic Drilldown extension to work: the code will not work without it, or with an earlier version. | |||
== Basic use == | == Basic use == | ||
Line 26: | Line 32: | ||
'''(1) Analyze your data''' | '''(1) Analyze your data''' | ||
You could use [[special:browseData]] to do so. | |||
'''(2) Create filters''' | '''(2) Create filters''' | ||
Every filter you want to be able to drill down with has to be defined separately, on a page in the "Filter:" namespace. The easiest way to create a filter is to simply go to the not-yet-created filter page, and click on the "Create with form" tab; this will show the 'CreateFilter' display Or, for you can go directly to [[Special:CreateFilter]]. | Every filter you want to be able to drill down with has to be defined separately, on a page in the "Filter:" namespace. The easiest way to create a filter is to simply go to the not-yet-created filter page, and click on the "Create with form" tab; this will show the 'CreateFilter' display Or, for you can go directly to [[Special:CreateFilter]]. | ||
Example: | |||
* [[Filter:CS Infrastructure]] | |||
'''(3) Add filters to categories''' | '''(3) Add filters to categories''' | ||
Line 36: | Line 45: | ||
Once you created filters, you can add the tag <nowiki>[[Has filter::Filter:filter-name]]</nowiki> (several possible) to a "semantic" top-level category page. | Once you created filters, you can add the tag <nowiki>[[Has filter::Filter:filter-name]]</nowiki> (several possible) to a "semantic" top-level category page. | ||
'''(4) Set some display options''' | '''(4) Include/exclude categories''' | ||
The use of Semantic DrillDown in a wiki like this one (i.e. not designed from the ground up as semantic mediawiki) requires some adjustments. The DrillDown special pages works from top-level categories. In this wiki there is only one, i.e. "Contents". The others that show up are mistakes :). | |||
We could have used the following strategy to exclude all non-semantic categories: | |||
* By default no category will show up. In the LocalSettings.php file we set: | |||
$sdgHideCategoriesByDefault = true; | |||
But since we only have a single "normal" top-level category we just inserted this in the [[:Category:Contents|Contents]] page | |||
<pre><nowiki>_HIDEFROMDRILLDOWN_</nowiki></pre> | |||
* Each category that should show up in the drilldown includes the following string: | |||
<pre><nowiki>_SHOWINDRILLDOWN_</nowiki></pre> | |||
'''Notice''': For some weird reasons I can't insert two underscores in a row in the above (i.e. the nowiki filter doesn't work). Therefore use "__" instead of "_" !! | |||
'''(5) Set some display options''' | |||
You could set the title of the drilldown page for any specific category, for example: | You could set the title of the drilldown page for any specific category, for example: | ||
This category has the drilldown title <nowiki>[[Has drilldown title::Browse all cities]]</nowiki>. | |||
More options are available (to document) | More options are available (to document) | ||
Line 46: | Line 71: | ||
* Use [[Special:Filters]] | * Use [[Special:Filters]] | ||
[[Category: Semantic Mediawiki]] |
Latest revision as of 17:46, 22 August 2016
Category:MediaWiki extension Semantic Drilldown | |
---|---|
Extension name | Semantic Drilldown |
About this article / disclaimer | |
Logo | ![]() |
Screenshot | ![]() |
Location of the main author | New York |
Coordinates of the main authors | 40.712728, -74.006015 |
Developers | Yaron Koren, David Loomer |
Licences | GPL |
Description | Semantic Drilldown is an extension to Semantic MediaWiki (SMW) that provides a page for drilling down through a site's data, using categories and filters on semantic properties. The list of pages in each top-level category can be viewed, and for each such category, filters can be created that cover a specific semantic property. If filters exist for a category, users can click on the different possible values for those filters, narrowing the set of results, and thus drill down through the data. |
Mediawiki requirements | Any recent version |
Dependencies | Semantic MediaWiki |
Related extensions (documented here) | Semantic Forms |
Related extensions | |
Discussion | |
Language support | Many |
Status | stable |
First release date | 2007/12/01 |
Last release date (as of 2013/06/26!) | 2013/06/01 |
Last version number | 1.2.5 (June 2013) |
Programming language | PHP |
Alternatives | |
Website | home page |
Publications | |
Support websites | web site |
Example websites | |
Last edited | 2013/06/26 |
Introduction
Semantic Drilldown is heavily tied in with the Semantic MediaWiki extension, and is meant to be used for drilling down structured data that has semantic markup. You must have version 1.5 or later of Semantic MediaWiki installed for the Semantic Drilldown extension to work: the code will not work without it, or with an earlier version.
Basic use
According, to the Semantic Drilldown page at Mediawiki.org, you first need "semantic contents", for example Semantic Forms.
(1) Analyze your data
You could use special:browseData to do so.
(2) Create filters
Every filter you want to be able to drill down with has to be defined separately, on a page in the "Filter:" namespace. The easiest way to create a filter is to simply go to the not-yet-created filter page, and click on the "Create with form" tab; this will show the 'CreateFilter' display Or, for you can go directly to Special:CreateFilter.
Example:
(3) Add filters to categories
Once you created filters, you can add the tag [[Has filter::Filter:filter-name]] (several possible) to a "semantic" top-level category page.
(4) Include/exclude categories
The use of Semantic DrillDown in a wiki like this one (i.e. not designed from the ground up as semantic mediawiki) requires some adjustments. The DrillDown special pages works from top-level categories. In this wiki there is only one, i.e. "Contents". The others that show up are mistakes :).
We could have used the following strategy to exclude all non-semantic categories:
- By default no category will show up. In the LocalSettings.php file we set:
$sdgHideCategoriesByDefault = true;
But since we only have a single "normal" top-level category we just inserted this in the Contents page
_HIDEFROMDRILLDOWN_
- Each category that should show up in the drilldown includes the following string:
_SHOWINDRILLDOWN_
Notice: For some weird reasons I can't insert two underscores in a row in the above (i.e. the nowiki filter doesn't work). Therefore use "__" instead of "_" !!
(5) Set some display options
You could set the title of the drilldown page for any specific category, for example:
This category has the drilldown title [[Has drilldown title::Browse all cities]].
More options are available (to document)
Listing all filters
- Use Special:Filters