More Ruby Meets the Semantic Web

Doing a bit more research on Ruby and the Semantic Web, I found another blog entry from Obie titled Semantic Web, meet Ruby on Rails.

Here's one of his snippets:

class Person < ActiveOntology::Base

definition ""

def your_method_here
# methods are pretty much the only thing left to write
# because since you defined it as a foaf:Person, it already has
# all the properties described at

def network_msg
"#{firstName} #{surname} has #{knows.size} people in their network"


Popular posts from this blog

Lists and arrays in Dart

Converting Array to List in Scala

Null-aware operators in Dart