Sha256: b07e9b1f05c832c0bcb1d4fd2ea365d0f901c92d3100eafece098c14fefe5fb6
Contents?: true
Size: 472 Bytes
Versions: 21
Compression:
Stored size: 472 Bytes
Contents
class OntologiesController < ApplicationController def index onto_qry = Query.new(N::URI).select(:context).distinct.where(N::TALIA.rdf_context_space, N::TALIA.rdf_file_context, :context) @ontologies = onto_qry.execute.collect { |context| context.local_name } end def show ontology_url = N::TALIA + URI.encode(params[:id]) @triples = Query.new(N::URI).select(:s, :p, :o).where(:s, :p, :o, ontology_url).execute end end
Version data entries
21 entries across 21 versions & 1 rubygems