Semantic Plugin

6 views
Skip to first unread message

Mike Cariaso

unread,
Feb 18, 2012, 4:29:01 AM2/18/12
to perlw...@googlegroups.com
https://github.com/cariaso/Semantic-MediaWiki-Bot/blob/master/lib/MediaWiki/Bot/Plugin/Semantic.pm

is rather simple, but does what it needs to, and I believe it follows
the appropriate CPAN conventions.

In short it allows using api.php to retrieve semantic properties from
sites which use
http://semantic-mediawiki.org/

A decent test url is
http://www.snpedia.com/api.php?action=askargs&conditions=Rs13266634%28C;T%29&printouts=Repute|Magnitude|On+chromosome|Chromosome+position

which is comparable to
http://www.snpedia.com/index.php/Rs13266634%28C;T%29
and
http://www.snpedia.com/index.php/Special:Browse/Rs13266634%28C;T%29

It was built by following the example of
http://search.cpan.org/~dcollins/MediaWiki-Bot-Plugin-CUP-0.3.2/lib/MediaWiki/Bot/Plugin/CUP.pm

I'm still waiting on feedback from the relevant Semantic MediaWiki
developer to ensure that it works correctly when more than 20 results
will be returned. But I think its far enough to solicit feedback and
advice from this forum.

I'm interested in advice on
1. CPAN. This is my first CPAN module, so I believe I need to create a
CPAN user ID.
2. I've seen chromatic has a local CPAN thing, but have never fully
understood it. If relevant, please let me know.

Any and all thoughts are welcome.

--
--
Mike Cariaso
http://www.cariaso.com

Mike.lifeguard

unread,
Jun 10, 2012, 12:45:51 PM6/10/12
to perlw...@googlegroups.com
Hi Mike,

I'm sorry I missed replying to this email back when you sent it.
Hopefully you are still working on this plugin - for users of Semantic
MediaWiki, it'll be a welcome addition, I think.

On 12-02-18 05:29 AM, Mike Cariaso wrote:
> I'm interested in advice on
> 1. CPAN. This is my first CPAN module, so I believe I need to create a
> CPAN user ID.

Yes - you can request one here:
http://pause.perl.org/pause/query?ACTION=request_id

> 2. I've seen chromatic has a local CPAN thing, but have never fully
> understood it. If relevant, please let me know.

Nope, you don't need to worry about that at all.

Other advice: Your test suite should have .t files, not .pl files. I'll
send you a pull request.

I've created a fork in the MediaWiki-Bot organization. It might be worth
using that as the central repository. I've added you to the
organization, and you should be able to push into the organization's
repo directly.

-Mike

Reply all
Reply to author
Forward
0 new messages