Skip to content

timotta/active-semantic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Experimental ruby gem to abstract sparql queries

Getting the uri:

tv_show = ActiveSemantic.find(@uri)
puts tv_show.uri

Getting the an attribute:

puts tv_show.name.first

Getting all attributes the same name:

tv_show.site.each do |site|
  puts site
end

Getting attributes of related entities:

tv_show.season.each do |season|
  puts season.description.first
end

All data of a related entity are requested only when some its attribute is accessed.

  • Register prefix ontologies

  • When iterate on a list of related entities, request on server all data of them

  • Prepare to use rake spec

  • Access entities where the actual entity is some attribute

Tiago Albineli Motta programandosemcafeina.blogspot.comn

About

Ruby gem to abstract sparql queries

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages