Add support for Organization
ClosedPublic

Authored by lbeltrame on Apr 3 2018, 9:17 PM.

Details

Summary

This commits implements the Organization data type as defined in
schema.org. Of the many fields available, just a select few are
available.

Test Plan

Ran unit test, passed.

Diff Detail

Repository
R1003 KItinerary: Travel Reservation handling library
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
lbeltrame created this revision.Apr 3 2018, 9:17 PM
Restricted Application added a project: KDE PIM. · View Herald TranscriptApr 3 2018, 9:17 PM
Restricted Application added a subscriber: KDE PIM. · View Herald Transcript
lbeltrame requested review of this revision.Apr 3 2018, 9:17 PM
lbeltrame updated this revision to Diff 31257.Apr 4 2018, 5:38 AM
  • Add Organization header generation
  • Very basic autotest
lbeltrame edited the test plan for this revision. (Show Details)Apr 4 2018, 5:38 AM
lbeltrame updated this revision to Diff 31258.Apr 4 2018, 5:46 AM
  • Test setting and reading Organization properties
lbeltrame updated this revision to Diff 31259.Apr 4 2018, 5:47 AM
  • Add myself to copyrights
lbeltrame edited the summary of this revision. (Show Details)Apr 4 2018, 5:49 AM

Thanks! This can go in as-is.

If you also add a line to jsonlddocument.cpp in createInstance() for the new class de/serialization should also already work :)

lbeltrame updated this revision to Diff 31261.Apr 4 2018, 7:26 AM
  • Allow Organization to be serialized/deserialized
lbeltrame retitled this revision from [WIP] Add support for Organization to Add support for Organization.Apr 4 2018, 7:28 AM
vkrause accepted this revision.Apr 4 2018, 7:45 AM
This revision is now accepted and ready to land.Apr 4 2018, 7:45 AM
This revision was automatically updated to reflect the committed changes.