Skip to content

Instantly share code, notes, and snippets.

$ curl -H 'Accept: text/plain' 'http://rdf-in-html.appspot.com/translate?uri=http://www.cmlenz.net/archives/2009/12/namespaces&parser=HTML'
# Produced by java-rdfa 0.2.1
# Origin: <http://www.cmlenz.net/archives/2009/12/namespaces>
<http://www.cmlenz.net/archives/2009/12/namespaces> <http://www.w3.org/1999/xhtml/vocab#icon> <http://www.cmlenz.net/favicon.ico> .
<http://www.cmlenz.net/archives/2009/12/namespaces> <http://www.w3.org/1999/xhtml/vocab#icon> <http://www.cmlenz.net/favicon.ico> .
<http://www.cmlenz.net/archives/2009/12/namespaces> <http://www.w3.org/1999/xhtml/vocab#stylesheet> <http://www.cmlenz.net/media/style/layout.css> .
<http://www.cmlenz.net/archives/2009/12/namespaces> <http://www.w3.org/1999/xhtml/vocab#stylesheet> <http://www.cmlenz.net/media/style/print.css> .
require 'java'
begin
java.lang.System.out.println(nil)
rescue java.lang.NullPointerException => e
puts "Got you! #{e}"
end
pldms@snowball:/tmp/ant-jruby$ jruby -S gem install bitescript
pldms@snowball:/tmp/ant-jruby$ cat file.rb
require "java"
require "lib/ant.jar"
include_class "org.apache.tools.ant.Task"
class SampleTask < Task
def execute
puts "Hello from SampleTask!"
Compiled from "SampleTask.rb"
public class SampleTask extends org.jruby.ast.executable.AbstractScript{
public SampleTask();
public static org.jruby.runtime.builtin.IRubyObject __file__(SampleTask, org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject[], org.jruby.runtime.Block);
public org.jruby.runtime.builtin.IRubyObject __file__(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject[], org.jruby.runtime.Block);
public static org.jruby.runtime.builtin.IRubyObject class_0$RUBY$SampleTask(SampleTask, org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.Block);
public static org.jruby.runtime.builtin.IRubyObject method__1$RUBY$execute(SampleTask, org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.Block);
public static org.jruby.runtime.builtin.IRubyObject method__1$RUBY$execute(SampleTask, org.jruby.run
Given
a subclass of b
b subclass of c
* If <x,y> is in IEXT(I(rdfs:subClassOf)) then x and y are in IC and ICEXT(x) is a subset of ICEXT(y)
hence extension(a) subset of extension(b)
similarly extension(b) subset of extension(c)
bash-3.2$ ant clean test
Buildfile: build.xml
init:
clean:
[delete] Deleting directory /Users/pldms/Development/CVS-Other/jruby/build
[delete] Deleting directory /Users/pldms/Development/CVS-Other/jruby/docs/api
[delete] Deleting directory /Users/pldms/Development/CVS-Other/jruby/src_gen