Skip to content

Commit

Permalink
add the attributes dcterms:created and dcterms:modified to classes model
Browse files Browse the repository at this point in the history
  • Loading branch information
syphax-bouazzouni committed Nov 3, 2022
1 parent 8859e26 commit f058cb2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/ontologies_linked_data/models/class.rb
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,11 @@ def self.urn_id(acronym,classId)

attribute :notes,
inverse: { on: :note, attribute: :relatedClass }
attribute :created, namespace: :dcterms
attribute :modified, namespace: :dcterms

# Hypermedia settings
embed :children, :ancestors, :descendants, :parents
serialize_default :prefLabel, :synonym, :definition, :cui, :semanticType, :obsolete, :matchType, :ontologyType, :provisional # an attribute used in Search (not shown out of context)
serialize_default :prefLabel, :synonym, :definition, :cui, :semanticType, :obsolete, :matchType, :ontologyType, :provisional, :created, :modified # an attribute used in Search (not shown out of context)
serialize_methods :properties, :childrenCount, :hasChildren
serialize_never :submissionAcronym, :submissionId, :submission, :descendants
aggregates childrenCount: [:count, :children]
Expand Down

0 comments on commit f058cb2

Please sign in to comment.