...
Code Block | ||||
---|---|---|---|---|
| ||||
@prefix dc: <http://purl.org/dc/elements/1.1/> . @prefix dcterms: <http://purl.org/dc/terms> . @prefix ore: <http://www.openarchives.org/ore/terms/> . <http://localhost:3000/individual/vc155> a ore:Aggregation ; dcterms:title "Engineering Handbooks" ; dcterms:description "These are resources that...Virtual collection of reference works for engineering." ; dc:creator <http://vivo.cornell.edu/individual/individual24416> ; ore:aggregates <http://da-rdf.library.cornell.edu/individual/b7141838> ; ore:aggregates <http://da-rdf.library.cornell.edu/individual/b4004406> ; ore:aggregates <http://da-rdf.library.cornell.edu/individual/b304862> . |
...
CHANGE DESCRIPTION OF ENGINEERING HANDBOOK
Code Block | ||||
---|---|---|---|---|
| ||||
@prefix ore: <http://www.openarchives.org/ore/terms/> . @prefix iana: <http://www.iana.org/assignments/relation/> . <http://localhost:3000/individual/vci162> a ore:Proxy ; ore:proxyFor <http://da-rdf.library.cornell.edu/individual/b7141838> ; ore:proxyIn <http://localhost:3000/individual/vc155> ; iana:next <http://localhost:3000/individual/vci163> . <http://localhost:3000/individual/vci163> a ore:Proxy ; ore:proxyFor <http://da-rdf.library.cornell.edu/individual/b4004406> ; ore:proxyIn <http://localhost:3000/individual/vc155> ; iana:previous <http://localhost:3000/individual/vci162> ; iana:next <http://localhost:3000/individual/vci164> . <http://localhost:3000/individual/vci164> a ore:Proxy ; ore:proxyFor <http://da-rdf.library.cornell.edu/individual/b304862> ; ore:proxyIn <http://localhost:3000/individual/vc155> ; iana:previous <http://localhost:3000/individual/vci163> . |
...
Code Block | ||
---|---|---|
| ||
Dir["lib/ld4l/virtual_collection_rdf/vocab/*.rb"].each {|file| require file[4,file.size-3] } module LD4L module VirtualCollectionRDF class Collection < ActiveTriples::Resource @id_prefix="vc" configure :type => RDFVocabularies::ORE.Aggregation, :base_uri => LD4L::VirtualCollectionRDF.configuration.base_uri, :repository => :default # extended properties for LD4L implementation property :title, :predicate => RDF::DC.title property :description, :predicate => RDF::DC.description property :owner, :predicate => RDFVocabularies::DCTERMS.creator, :class_name => LD4L::VirtualCollectionRDF::Person # properties from ORE.Aggregation property :aggregates, :predicate => RDFVocabularies::ORE.aggregates # multiple values end end end |
Code Block | ||
---|---|---|
| ||
module RDFTypes
class OpenAnnotationRDF < ActiveTriples::Resource
@id_prefix="oa"
configure :type => RDFVocabularies::OA.Annotation, :base_uri => Rails.configuration.urigenerator.base_uri, :repository => :default
# properties from OA.Annotation
property :hasTarget, :predicate => RDFVocabularies::OA.hasTarget # :type => URI
property :hasBody, :predicate => RDFVocabularies::OA.hasBody, :class_name => RDFTypes::OpenAnnotationBodyRDF
property :annotatedBy, :predicate => RDFVocabularies::OA.annotatedBy, :class_name => RDFTypes::PersonRDF
property :annotatedAt, :predicate => RDFVocabularies::OA.annotatedAt # :type => xsd:dateTime # the time Annotation was created
property :motivatedBy, :predicate => RDFVocabularies::OA.motivatedBy # comes from RDFVocabularies::OA ontology
end
end
module RDFTypes
class OpenAnnotationBodyRDF < ActiveTriples:Resource
@id_prefix="oab"
configure :base_uri => Rails.configuration.urigenerator.base_uri, :repository => :default
property :type, :predicate => RDF::type # :type => URI
property :content, :predicate => RDFVocabularies::CNT.chars # :type => XSD.string
property :format, :predicate => RDF::DC.format # :type => XSD.string
end
end |
Code Block | ||
---|---|---|
| ||
@prefix oa: <http://www.w3.org/ns/oa> .
@prefix skos: <http://www.w3.org/2008/05/skos> .
<http://localhost:3000/individual/st93> a oa:SemanticTagging ;
oa:hasTarget <http://localhost:3000/individual/vci162> ;
oa:hasBody <http://localhost:3000/individual/srt25> ;
oa:annotatedBy <http://vivo.cornell.edu/individual/individual24416> ;
oa:annotatedAt "2014-09-21T12:00:00Z"^^xsd:dateTime
oa:motivatedBy oa:tagging .
<http://localhost:3000/individual/cv3> a skos:Concept;
skos:prefLabel "Sub-resource Type"@en ;
skos:narrower <http://localhost:3000/individual/srt1> ;
skos:narrower <http://localhost:3000/individual/srt2> ;
skos:narrower <http://localhost:3000/individual/srt3> .
<http://localhost:3000/individual/srt1> a skos:Concept;
skos:prefLabel "Standards"@en ;
skos:broader <http://localhost:3000/individual/cv3> .
<http://localhost:3000/individual/srt2> a skos:Concept;
skos:prefLabel "Handbooks"@en ;
skos:broader <http://localhost:3000/individual/cv3> .
<http://localhost:3000/individual/srt3> a skos:Concept;
skos:prefLabel "Dictionaries"@en ;
skos:broader <http://localhost:3000/individual/cv3> .
<http://localhost:3000/individual/srt4> a skos:Concept;
skos:prefLabel "Thesis"@en ;
skos:broader <http://localhost:3000/individual/cv3> .
|