@@ -92,12 +92,12 @@ def self.urn_id(acronym,classId)
9292 # Hypermedia settings
9393 embed :children , :ancestors , :descendants , :parents , :prefLabelXl , :altLabelXl , :hiddenLabelXl
9494 serialize_default :prefLabel , :synonym , :definition , :cui , :semanticType , :obsolete , :matchType , :ontologyType , :provisional , :created , :modified , :memberOf , :inScheme # an attribute used in Search (not shown out of context)
95- serialize_methods :properties , :childrenCount , :hasChildren , :definitionXl
95+ serialize_methods :properties , :childrenCount , :hasChildren
9696 serialize_never :submissionAcronym , :submissionId , :submission , :descendants
9797 aggregates childrenCount : [ :count , :children ]
9898 links_load submission : [ ontology : [ :acronym ] ]
9999 do_not_load :descendants , :ancestors
100- prevent_serialize_when_nested :properties , :parents , :children , :ancestors , :descendants , :memberOf , :definitionXl
100+ prevent_serialize_when_nested :properties , :parents , :children , :ancestors , :descendants , :memberOf
101101 link_to LinkedData ::Hypermedia ::Link . new ( "self" , lambda { |s | "ontologies/#{ s . submission . ontology . acronym } /classes/#{ CGI . escape ( s . id . to_s ) } " } , self . uri_type ) ,
102102 LinkedData ::Hypermedia ::Link . new ( "ontology" , lambda { |s | "ontologies/#{ s . submission . ontology . acronym } " } , Goo . vocabulary [ "Ontology" ] ) ,
103103 LinkedData ::Hypermedia ::Link . new ( "children" , lambda { |s | "ontologies/#{ s . submission . ontology . acronym } /classes/#{ CGI . escape ( s . id . to_s ) } /children" } , self . uri_type ) ,
@@ -386,20 +386,6 @@ def properties(*args)
386386 properties
387387 end
388388
389- # Expose the content of reified skos:definition nodes (text + provenance).
390- # `definition` (the flat attribute) is unchanged: for reified definitions
391- # its entries are the bare node URIs; this method resolves those URIs into
392- # structured objects. Plain-literal definitions have no URI entries, so
393- # this returns an empty array and the flat `definition` still carries them.
394- def definitionXl
395- self . bring ( :definition ) if self . bring? ( :definition )
396- uris = Array ( self . definition ) . select { |d | d . is_a? ( RDF ::URI ) }
397- return [ ] if uris . empty?
398-
399- self . bring ( :submission ) if self . bring? ( :submission )
400- LinkedData ::Models ::SKOS ::Definition . reified ( uris , self . submission )
401- end
402-
403389 def self . partially_load_children ( models , threshold , submission )
404390 ld = [ :prefLabel , :definition , :synonym ]
405391 ld << :subClassOf if submission . hasOntologyLanguage . obo?
0 commit comments