## semediawiki-user

 [Semediawiki-user] Graph Data Structure Extension From: Gregory Szorc - 2006-09-04 19:49:28 Attachments: Message as HTML ```Hey all, I added support for Semantic MediaWiki to my MediaWiki graph data structure-generating extension and figured I might as well announce it to this list. Demo: http://wiki.case.edu/Special:GraphStructure http://wiki.case.edu/Special:GraphStructure/xml/article/Yost_Hall Source and Documentation: http://opensource.case.edu/projects/MediaWikiHacks/ Currently, the output is my own XML format (I wanted to make it as simple as possible). RDF output is still a possibility. If you have any comments or feature requests, don't hesitate to voice them. Gregory Szorc gregory.szorc@... P.S. Great work on Semantic MediaWiki. We recently installed it on http://wiki.case.edu and some people are already finding some cool uses ( http://blog.case.edu/bmb12/2006/09/geocoding_tools_for_python_and_caseclasses ) ```
 Re: [Semediawiki-user] Graph Data Structure Extension From: Markus - 2006-09-06 10:21:35 Attachments: Message as HTML ```Hey Gregory, that is indeed interesting news! Glad to hear that Case Western can use som= e=20 of my current work -- I have been doing part of my own MSc there! :-) I also had a look at your graph extension. I was wondering what to do with = the=20 returned graph. It has spacial coordinates, so could it be plotted somehow?= =20 In principle, it would also be possible to extract a similar graph from the= =20 RDF export (which already is a different representation of a very similar=20 graph). RDF export can be recursive and inlcude backlinks, so you could=20 obtain a reasonable "surrounding" of some article. On the one hand, this=20 restricts you to the display of typed links, but on the other hand you woul= d=20 also get a useful relation for each link and find additional attributes of= =20 each node. It might indeed be interesting to use RDF as an (alternative) output format= ,=20 because there are tools for displaying RDF graphs, and one could even hack= =20 one to use geographical positions as a guideline for layout. The Python Geo-API is also cool. Denny, our main Python hacker, is also qui= te=20 delighted :-) You mentioned that you did not use the Geographic Coordinate= =20 support from SMW in CASE-wiki since it contained some bugs. What are these?= =20 It should accept at least those inputs that the mapsources extension can=20 take, and it provides some additional direct links to online maps (which ca= n=20 be configured easily through the code). Best regards, Markus On Monday 04 September 2006 21:45, Gregory Szorc wrote: > Hey all, > > I added support for Semantic MediaWiki to my MediaWiki graph data > structure-generating extension and figured I might as well announce it to > this list. > > Demo: > http://wiki.case.edu/Special:GraphStructure > http://wiki.case.edu/Special:GraphStructure/xml/article/Yost_Hall > > Source and Documentation: > http://opensource.case.edu/projects/MediaWikiHacks/ > > Currently, the output is my own XML format (I wanted to make it as simple > as possible). RDF output is still a possibility. > > If you have any comments or feature requests, don't hesitate to voice the= m. > > Gregory Szorc > gregory.szorc@... > > P.S. Great work on Semantic MediaWiki. We recently installed it on > http://wiki.case.edu and some people are already finding some cool uses ( > http://blog.case.edu/bmb12/2006/09/geocoding_tools_for_python_and_casecla= ss >es ) =2D-=20 Markus Kr=F6tzsch Institute AIFB, University of Karlsruhe, D-76128 Karlsruhe mak@... phone +49 (0)721 608 7362 http://www.aifb.uni-karlsruhe.de/WBS/ fax +49 (0)721 693 717 ```
 [Semediawiki-user] BUGFIX Re: Graph Data Structure Extension From: Markus - 2006-09-06 10:54:27 Attachments: Message as HTML ```Ah, I think now I see your problem with geo-coords. There was an "else"=20 missing in one line, so it did not return negative longitudes for the weste= rn=20 hemishpere. Another problem was rather an issue of MapQuest: they do not=20 accept split seconds, so I had to round them first. To fix this, download the updated file from=20 http://svn.wikimedia.org/svnroot/mediawiki/trunk/extensions/SemanticMediaWi= ki/includes/SMW_DT_GeoCoords.php=20 and copy it to extensions/SemanticMediaWiki/includes/SMW_DT_GeoCoords.php. Best regards, Markus On Monday 04 September 2006 21:45, Gregory Szorc wrote: > Hey all, > > I added support for Semantic MediaWiki to my MediaWiki graph data > structure-generating extension and figured I might as well announce it to > this list. > > Demo: > http://wiki.case.edu/Special:GraphStructure > http://wiki.case.edu/Special:GraphStructure/xml/article/Yost_Hall > > Source and Documentation: > http://opensource.case.edu/projects/MediaWikiHacks/ > > Currently, the output is my own XML format (I wanted to make it as simple > as possible). RDF output is still a possibility. > > If you have any comments or feature requests, don't hesitate to voice the= m. > > Gregory Szorc > gregory.szorc@... > > P.S. Great work on Semantic MediaWiki. We recently installed it on > http://wiki.case.edu and some people are already finding some cool uses ( > http://blog.case.edu/bmb12/2006/09/geocoding_tools_for_python_and_casecla= ss >es ) =2D-=20 Markus Kr=F6tzsch Institute AIFB, University of Karlsruhe, D-76128 Karlsruhe mak@... phone +49 (0)721 608 7362 http://www.aifb.uni-karlsruhe.de/WBS/ fax +49 (0)721 693 717 ```
 Re: [Semediawiki-user] Graph Data Structure Extension From: Gregory Szorc - 2006-09-06 15:33:10 Attachments: Message as HTML ```On 9/6/06, Markus Kr=F6tzsch wrote: > > I also had a look at your graph extension. I was wondering what to do wit= h > the > returned graph. It has spacial coordinates, so could it be plotted > somehow? I was thinking about creating a type of output in the special page that pruned the graph so that the only nodes and edges left were related to locations. For example, it would prune all nodes not having a geo attribut= e and all relations not {located in, is located in}, etc. We would love to b= e able to better support location-based services on campus and a good way to do this is to provide a very simple XML document that contains just the basic location info. In principle, it would also be possible to extract a similar graph from the > RDF export (which already is a different representation of a very similar > graph). RDF export can be recursive and inlcude backlinks, so you could > obtain a reasonable "surrounding" of some article. On the one hand, this > restricts you to the display of typed links, but on the other hand you > would > also get a useful relation for each link and find additional attributes o= f > each node. > > It might indeed be interesting to use RDF as an (alternative) output > format, > because there are tools for displaying RDF graphs, and one could even hac= k > one to use geographical positions as a guideline for layout. I agree that RDF output would be useful. This is logically the next step for the extension. I'll add it to my to-do list. The Python Geo-API is also cool. Denny, our main Python hacker, is also > quite > delighted :-) You mentioned that you did not use the Geographic Coordinat= e > support from SMW in CASE-wiki since it contained some bugs. What are > these? > It should accept at least those inputs that the mapsources extension can > take, and it provides some additional direct links to online maps (which > can > be configured easily through the code). Have a look at http://wiki.case.edu/Olin_Building, its history, and its tal= k page. It appears that links to Google Maps and Mapquest for locations in the NW quadrant of the globe aren't formatted properly. The link to the MapSources page works great. Also, we have been using the GIS extension since the wiki was started. I would love to convert to SMW, but the following are holding us up: 1) Users must type the degree symbol to input coordinates. Not everybody can do this. Ideally, they should be able to copy and paste from the old extension (ex 41 30 17.33 N 81 36 29.58 W). 2) We would like to define our own links to be displayed next to the coordinates in the fact box. Ideally, we don't modify the source to do this. Could the list of links be converted to a setting or MediaWiki message somehow? If using a MediaWiki message, it is possible to pass parameters to the message to control what exactly is displayed. If nothing at all, can we at least easily change the MapSources URL via a system message? Greg Best regards, > > Markus > > > > On Monday 04 September 2006 21:45, Gregory Szorc wrote: > > Hey all, > > > > I added support for Semantic MediaWiki to my MediaWiki graph data > > structure-generating extension and figured I might as well announce it > to > > this list. > > > > Demo: > > http://wiki.case.edu/Special:GraphStructure > > http://wiki.case.edu/Special:GraphStructure/xml/article/Yost_Hall > > > > Source and Documentation: > > http://opensource.case.edu/projects/MediaWikiHacks/ > > > > Currently, the output is my own XML format (I wanted to make it as > simple > > as possible). RDF output is still a possibility. > > > > If you have any comments or feature requests, don't hesitate to voice > them. > > > > Gregory Szorc > > gregory.szorc@... > > > > P.S. Great work on Semantic MediaWiki. We recently installed it on > > http://wiki.case.edu and some people are already finding some cool uses > ( > > > http://blog.case.edu/bmb12/2006/09/geocoding_tools_for_python_and_casecla= ss > >es ) > > -- > Markus Kr=F6tzsch > Institute AIFB, University of Karlsruhe, D-76128 Karlsruhe > mak@... phone +49 (0)721 608 7362 > http://www.aifb.uni-karlsruhe.de/WBS/ fax +49 (0)721 693 717 > > > ```
 Re: [Semediawiki-user] Graph Data Structure Extension From: Markus - 2006-09-07 11:02:23 Attachments: Message as HTML ```On Wednesday 06 September 2006 17:33, Gregory Szorc wrote: > On 9/6/06, Markus Kr=F6tzsch wrote: > > I also had a look at your graph extension. I was wondering what to do > > with the > > returned graph. It has spacial coordinates, so could it be plotted > > somehow? > > I was thinking about creating a type of output in the special page that > pruned the graph so that the only nodes and edges left were related to > locations. For example, it would prune all nodes not having a geo > attribute and all relations not {located in, is located in}, etc. We wou= ld > love to be able to better support location-based services on campus and a > good way to do this is to provide a very simple XML document that contains > just the basic location info. Ah, I see. > > Have a look at http://wiki.case.edu/Olin_Building, its history, and its > talk page. It appears that links to Google Maps and Mapquest for locatio= ns > in the NW quadrant of the globe aren't formatted properly. The link to t= he > MapSources page works great. Yes, I noticed. My yesterday's bugfix should get this right. > > Also, we have been using the GIS extension since the wiki was started. I > would love to convert to SMW, but the following are holding us up: > > 1) Users must type the degree symbol to input coordinates. Not everybody > can do this. Ideally, they should be able to copy and paste from the old > extension (ex 41 30 17.33 N 81 36 29.58 W). OK, this would be doable. I will take care of this soon. > > 2) We would like to define our own links to be displayed next to the > coordinates in the fact box. Ideally, we don't modify the source to do > this. Could the list of links be converted to a setting or MediaWiki > message somehow? If using a MediaWiki message, it is possible to pass > parameters to the message to control what exactly is displayed. If nothi= ng > at all, can we at least easily change the MapSources URL via a system > message? Well, I will have to think about it. Using a message is principle is easy=20 enough. The main problem is that the different services require different=20 types of formats for the coordinates. I can solve this during the weekend, = I=20 think. =2D- Markus > > Greg > > > Best regards, > > > Markus > > > > On Monday 04 September 2006 21:45, Gregory Szorc wrote: > > > Hey all, > > > > > > I added support for Semantic MediaWiki to my MediaWiki graph data > > > structure-generating extension and figured I might as well announce it > > > > to > > > > > this list. > > > > > > Demo: > > > http://wiki.case.edu/Special:GraphStructure > > > http://wiki.case.edu/Special:GraphStructure/xml/article/Yost_Hall > > > > > > Source and Documentation: > > > http://opensource.case.edu/projects/MediaWikiHacks/ > > > > > > Currently, the output is my own XML format (I wanted to make it as > > > > simple > > > > > as possible). RDF output is still a possibility. > > > > > > If you have any comments or feature requests, don't hesitate to voice > > > > them. > > > > > Gregory Szorc > > > gregory.szorc@... > > > > > > P.S. Great work on Semantic MediaWiki. We recently installed it on > > > http://wiki.case.edu and some people are already finding some cool us= es > > > > ( > > > > http://blog.case.edu/bmb12/2006/09/geocoding_tools_for_python_and_casec= la > >ss > > > > >es ) > > > > -- > > Markus Kr=F6tzsch > > Institute AIFB, University of Karlsruhe, D-76128 Karlsruhe > > mak@... phone +49 (0)721 608 7362 > > http://www.aifb.uni-karlsruhe.de/WBS/ fax +49 (0)721 693 717 =2D-=20 Markus Kr=F6tzsch Institute AIFB, University of Karlsruhe, D-76128 Karlsruhe mak@... phone +49 (0)721 608 7362 http://www.aifb.uni-karlsruhe.de/WBS/ fax +49 (0)721 693 717 ```