Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Lightweight Java library to validate UCDs (Unified Content Descriptors).

License

LGPL-3.0, GPL-3.0 licenses found

Licenses found

LGPL-3.0
COPYING.LESSER
GPL-3.0
COPYING
NotificationsYou must be signed in to change notification settings

gmantele/ucidy

Repository files navigation

Test StatusLicense: LGPL v3

README

Preamble

This GitHub repository contains the sources of a library aiming to validate anyUCD (Unified Content Descriptor). This current version aims to respect as muchas possible the definition provided by theIVOAstandard:An IVOA Standard for Unified Content Descriptors - Version 1.10.The parser is by default configured with the list of all validated UCD wordslisted inThe UCD1+ controlled vocabulary 1.6.

Functionalities

  • Check whether each UCD word is:
  • Possibility to customise the list of known UCD words(by default all validated UCD1+ are automatically loaded)
  • Validate a full UCD with
    • a list of human-readable errors
    • an automatic correction suggestion (particularly for typo)
    • a list of advice to improve the readability of the UCD
  • Detection of deprecated UCD words(when detected a clear error message isreturned and a correction suggestion is proposed)
  • Different ways to search UCD words
    • exact match
    • starting with
    • closest match(take into account possible typo)
  • Support namespace prefix

Java version

This library is developed usingJava 1.8(should be compatible with Java 1.8 or newer).

Download

The compiled JAR, the runnable JAR, the sources and the Javadoc API areavailable on GitHub forall releasesand especially for thelatest one.

Documentation

License

This library is under the conditions of the LPGL-v3. SeeCOPYING.LESSERandCOPYING for moredetails.

Collaboration

I strongly encourage youto declare any issue you encounterhere. Thus, anybody who has the sameproblem can see whether his/her problem is already known. If the problem isknown the progress and/or comments about its resolution will be published.

In addition, if you have forked this repository and made some corrections onyour side which are likely to interest any other user of the libraries, please,send a pull requesthere. Provided these modifications are inaccordance with the IVOA definition and do not relate specifically to your usecase, they will be integrated (maybe after some modifications) in thisrepository and thus will be made available to everybody.

Compilation

Both the management of dependencies and compilation are possible thanks toGradle. However, to compile or to run tests, no need to install Gradle. Justuse thegradlew (orgradlew.bat on Windows).

To generate the JAR file:

./gradlew jar

The JAR file will be available in the directorylib/build/libs/.

To run all tests:

./gradlewtest

Tests results will be available in the directorylib/build/test-results/.

Repository content

Dependencies

No dependency.

Resources

The directorylib/src/main/resources/ contains two files for the moment:

These files are loaded by the default parser initialised in the class UCDParser.

If the fileucd1p-words.txt is renamed or removed, the default parser willraise a warning on the standard error output and will be initialized with anempty list of known UCD1+ words. Consequently, any UCD parsed using this parserwill be systematically flagged asnot recognised and sonot recommended.

Tests

The sources of these three libraries come with some JUnit test files. You canfind them in the directorylib/src/main/test/java/.

About

Lightweight Java library to validate UCDs (Unified Content Descriptors).

Topics

Resources

License

LGPL-3.0, GPL-3.0 licenses found

Licenses found

LGPL-3.0
COPYING.LESSER
GPL-3.0
COPYING

Stars

Watchers

Forks

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp