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
Rdf serializer #75
Merged
Merged
Rdf serializer #75
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- setup RdfConverter and Serializer for direct writing in RdfConverter - implement visitors for RdfConverter
* Move all actual triple writing to new class RdfWriter (no more OpenRDF "Statements" in the main code) * Move URI constants and methods to new class Vocabulary * Rename methods in a uniform way (most methods now "write" something) * Change method visibility and reorder methods according to style guide * New Enum PropertyContext to specify how a property is used More changes to come.
In some cases, the class will need to know which Wiki it is used with, but for now let's just implement this for Wikidata only.
* New buffer object to store values for later serialization * Initial implementation for serializing quantities * Many architectural changes ... more to come
Unused features are omitted for now
https://github.com/Wikidata/Wikidata-Toolkit.git into rdf-serializer Conflicts: wdtk-rdf/src/main/java/org/wikidata/wdtk/rdf/ValueRdfConverter.java
Commented everything out that delivered no useful URI.
- new interface PropertyTypes - rename class PropertyTypes to PropertyTypesImpl (for WikiData Properties) - put Url of the WebApi of Wikidata as a constant in PropertyTypesImpl
- reparsing instead of removing blank nodes
- extend RdfConverterTest - new RdfSerializerTest - helper class for test functions of wdtk-rdf
* Use GZIP instead of BZ2, which is much slower (we can re-code data in BZ2 later on the console if really needed) * Use buffers before and after compression * Perform actual compression in separate threads
…-Toolkit.git into rdf-serializer
Smaller classes with more clearly defined tasks.
…-Toolkit.git into rdf-serializer
* Export links in addition rather than instead of Wikidata contents * Manage link exports through a flexible system extension classes that register on certain properties
…-Toolkit.git into rdf-serializer
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.