Last modified: 2009-08-01 18:09:33 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T21141, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 19141 - URI generation in RDF export partly lacks port information
URI generation in RDF export partly lacks port information
Status: RESOLVED INVALID
Product: MediaWiki extensions
Classification: Unclassified
Semantic MediaWiki (Other open bugs)
unspecified
All All
: Normal minor (vote)
: ---
Assigned To: Markus Krötzsch
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-06-09 13:49 UTC by Markus Krötzsch
Modified: 2009-08-01 18:09 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Markus Krötzsch 2009-06-09 13:49:02 UTC
Here is a sample RDF export from a server that publishes HTTP to port 90:

 <!ENTITY wiki 'http://mc28gla/HUB/index.php?title=Special:URIResolver/'>
 
 <!ENTITY property 'http://mc28gla/HUB/index.php?title=Special:URIResolver/Property-3A'>
 
 <!ENTITY wikiurl 'http://mc28gla:90/HUB/index.php?title='>

Apparently, the URIs of "wiki" and "property" are generated in a way that does not take into account the port number. This should be improved.

Note that the RDF is not incorrect because of this. It simply uses identifiers (URIs) that cannot be used for retrieving further data (i.e. the exported RDF is no longer "linked").
Comment 1 Markus Krötzsch 2009-06-09 13:54:25 UTC
Workaround: One can use the $smwgNamespace setting in LocalSettings to provide the correct base URI manually. See http://semantic-mediawiki.org/wiki/Help:Configuration#smwgNamespace.
Comment 2 Markus Krötzsch 2009-08-01 18:09:33 UTC
Thinking about this problem again, I note that it is not a bug but expected behavior that can easily be customized: The main purpose of URIs is to provide unique identifiers for wiki pages. This is why they should not depend on the way in which the wiki is called. However, the port number can only be determined automatically based on the current request. So if the wiki was reachable via multiple ports, then the URIs would be different depending on how the wiki is accessed.

In order to solve this problem, SMW does not automatically generate the base URI but rather lets the user set it explicitly: it is the single parameter given to "enableSemantics()" in LocalSettings.php. In order to get port numbers in URIs, it is enough to add the port number to this parameter.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links