Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reader for web-API Json into the WDTK data model #91

Merged
merged 66 commits into from Sep 30, 2014

Conversation

fer-rum
Copy link
Member

@fer-rum fer-rum commented Jul 30, 2014

This pull request is a first preview of the upcoming implementation of the (de)serialization code for the "external" web-API json.

There are still some known TODOs:

  • Tests need to be completed
  • visitor pattern is not implemented everywhere
  • conversion to other implementations is not fully done

Please take a quick look at it or feed it some API Json and see if it works. (If not tell me the entityId of the document.)

Fredo Erxleben added 10 commits June 12, 2014 20:17
Added support for Labels and Descriptions
Streamlined tests.
Fixed Typo in class name of "TestItemDocument"
Moved structuram comparision of Json strings in seperate class.
Organized classes in a nicer package structure.
Reduced code replication.
Created a test suite for convenience.
Introduced property (de)serialization
@coveralls
Copy link

Coverage Status

Coverage decreased (-2.3%) when pulling caa8478 on externalJsonReader into 8bf8638 on master.

Fredo Erxleben added 6 commits August 9, 2014 16:57
Enabled Jackson to distinguish between Item- and PropertyDocumentImpl on
its own.
Intermediate commit - nothing fully functional to see here.

Note changes made to existing file for supporting the handling of JSON
dumps!
Conflicts:
	wdtk-datamodel/pom.xml

Merging master for changed handling of interface overridden methods
@mkroetzsch
Copy link
Member

What is the status of this? Travis indicates an error. We should get this merged soon (the format has changed recently).

@mkroetzsch
Copy link
Member

I am also getting errors on my machine when I try to compile this. Some required packages seem to be missing, and possibly also some dependencies.

@coveralls
Copy link

Coverage Status

Coverage decreased (-2.13%) when pulling 2ce0a74 on externalJsonReader into 5133ff9 on master.

@mkroetzsch
Copy link
Member

Not sure what the reason was, but it seems to work now after my recent merge of master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-2.13%) when pulling 2ce0a74 on externalJsonReader into 5133ff9 on master.

@coveralls
Copy link

Coverage Status

Coverage increased (+5.61%) when pulling 2ae0861 on externalJsonReader into 5133ff9 on master.

@coveralls
Copy link

Coverage Status

Coverage increased (+5.49%) when pulling a1b7bac on externalJsonReader into 5133ff9 on master.

@coveralls
Copy link

Coverage Status

Coverage increased (+5.49%) when pulling 923c213 on externalJsonReader into 5133ff9 on master.

Main changes:
* Distinguish "read only" helper classes from those used by Jackson
* Simplify several type conversion methods
* Removed helper classes that did not do anything special and used
standard datamodel implementations instead
* A lot of additional documentation
* Removed Helper; put its methods closer to where they are used
* Removed some constant definitions that occurred in two classes with
the same values
@coveralls
Copy link

Coverage Status

Coverage increased (+5.68%) when pulling 4f522b6 on externalJsonReader into 5133ff9 on master.

JUnit is well prepared to deal with exceptions and report errors in a
useful way. No need for code to do anything else there.
@coveralls
Copy link

Coverage Status

Coverage increased (+5.68%) when pulling e68f868 on externalJsonReader into 5133ff9 on master.

@coveralls
Copy link

Coverage Status

Coverage increased (+5.68%) when pulling f70a2ef on externalJsonReader into 5133ff9 on master.

The termed document's method setSiteIri() can be used after JSON
deserialization.
@coveralls
Copy link

Coverage Status

Coverage increased (+5.61%) when pulling fc118f8 on externalJsonReader into 5133ff9 on master.

* Jackson statements are related to documents rather than to subject
entities now, to support site IRI injection later
* Fixed several issues with the test construction (naming conventions,
code structure)
@coveralls
Copy link

Coverage Status

Coverage increased (+5.58%) when pulling b9ac141 on externalJsonReader into 5133ff9 on master.

@coveralls
Copy link

Coverage Status

Coverage increased (+4.21%) when pulling 5aa8108 on externalJsonReader into 5133ff9 on master.

* Order of reference snaks and qualifiers now used
* Some ordering happening in toString() to ensure uniform output
* Jackson-based Snaks and ItemIdValues have parent documents to find the
site IRI
* The Jackson factory correctly sets all data (including mock parent
documents where needed)
* Some missing toString/equals/hashCode added
@coveralls
Copy link

Coverage Status

Coverage increased (+9.29%) when pulling 77347ec on externalJsonReader into 5133ff9 on master.

mkroetzsch added a commit that referenced this pull request Sep 30, 2014
Full support for reading API-based JSON format
@mkroetzsch mkroetzsch merged commit e4fa2a2 into master Sep 30, 2014
@coveralls
Copy link

Coverage Status

Coverage increased (+9.45%) when pulling 60be4e3 on externalJsonReader into 5133ff9 on master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants