Git Product home page Git Product logo

cedar-cadsr-tools's People

Contributors

cedaradmin avatar egyedia avatar johardi avatar kjcollins avatar marcosmro avatar martinjoconnor avatar willrett avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cedar-cadsr-tools's Issues

Handle updated caDSR XML

As per #1 NCI will update their XML representation of CDEs to include the term source for controlled term values. Update CDE ingestor to handle this XML and generate value sets accordingly.

Requires #1

Selecting incorrect concept code for answers for CDEs generated from caDSR system

For CDEs, we are selecting the last entry for the values in DataElement/VALUEDOMAIN/PermissableValues/PermissableValues_ITEM/MEANINGCONCEPTS as the concept code for each answer to a CDE-based question. We should be selecting the first as the concepts get more general and less specific later in the list. The first element is the most specific.

Dealing with non-NCIT terms in value sets

The caDSR XML does not indicate the source of controlled terms. Mostly are from NCIT but not all are.

Denise talked about potentially extending their XML to provide this information.

Add caDSR reader to release

The CDE reader repo is not currently part a CEDAR release.

Adding it will be a little tricky since Java 8 is required to build it.

Requires update to Java 10,which is waiting on update of Maven plugin it uses (#3).

Requires #3

Error updating CDEs

Investigate error with CDE import.

02:04:47.919 INFO  o.m.c.ingestor.util.CedarServices - 11400/70886 CDEs retrieved.
02:04:48.878 INFO  o.m.c.ingestor.util.CedarServices - 11500/70886 CDEs retrieved.
02:04:49.746 INFO  o.m.c.ingestor.util.CedarServices - 11600/70886 CDEs retrieved.
02:04:50.663 INFO  o.m.c.ingestor.util.CedarServices - 11700/70886 CDEs retrieved.
02:04:51.775 ERROR o.m.c.i.t.c.CadsrCategoriesAndCdesUpdaterTool - Error: Server returned HTTP response code: 500 for URL: https://resource.metadatacenter.org/folders/https%3A%2F%2Frepo.metadatacenter.org%2Ffolders%2F1ee5ef41-0605-4c18-9054-b01eb4290339/contents-extract?resource_types=field&field_names=schema:identifier,pav:version,sourceHash,categories&offset=11700&limit=100
java.io.IOException: Server returned HTTP response code: 500 for URL: https://resource.metadatacenter.org/folders/https%3A%2F%2Frepo.metadatacenter.org%2Ffolders%2F1ee5ef41-0605-4c18-9054-b01eb4290339/contents-extract?resource_types=field&field_names=schema:identifier,pav:version,sourceHash,categories&offset=11700&limit=100
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
	at java.base/sun.net.www.protocol.http.HttpURLConnection$10.run(HttpURLConnection.java:1974)
	at java.base/sun.net.www.protocol.http.HttpURLConnection$10.run(HttpURLConnection.java:1969)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.base/sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1968)
	at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1536)
	at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1520)
	at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:250)
	at org.metadatacenter.cadsr.ingestor.util.CedarServices.findCdeSummariesInFolder(CedarServices.java:123)
	at org.metadatacenter.cadsr.ingestor.util.CdeUtil.getExistingCedarCdeSummaries(CdeUtil.java:133)
	at org.metadatacenter.cadsr.ingestor.tools.cde.CadsrCategoriesAndCdesUpdaterTool.main(CadsrCategoriesAndCdesUpdaterTool.java:172)
	at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:254)
	at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: java.io.IOException: Server returned HTTP response code: 500 for URL: https://resource.metadatacenter.org/folders/https%3A%2F%2Frepo.metadatacenter.org%2Ffolders%2F1ee5ef41-0605-4c18-9054-b01eb4290339/contents-extract?resource_types=field&field_names=schema:identifier,pav:version,sourceHash,categories&offset=11700&limit=100
	at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1924)
	at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1520)
	at java.base/java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:527)
	at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:334)
	at org.metadatacenter.cadsr.ingestor.util.CedarServices.findCdeSummariesInFolder(CedarServices.java:106)
	... 4 more

Revisit bypassing SSL certificate when uploading CDEs to CEDAR server

The current solution is to ignore the CEDAR certificate when running the Java upload code. This is not really secure and it needs a better solution. Below is the error message received when executing the code:

javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: 
PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: 
unable to find valid certification path to requested target

The implemented solution is based on this post: https://stackoverflow.com/questions/13626965/how-to-ignore-pkix-path-building-failed-sun-security-provider-certpath-suncertp

Support all ~200 caDSR CDE datatypes

We currently support the 10 most common caDSR CDE datatypes (CHARACTER, NUMBER, java.lang.String, DATE, java.lang.Long, java.lang.Integer, java.lang.Double, java.util.Date, ALPHANUMERIC, ISO21090CDv1.0).

We do not support the remaining ~190. Some are pretty obscure (e.g., ISO21090TELURLv1.0, ISO21090.TEL.URL.v1.0, ISO21090BLv1.0) and are used in only a few CDEs. However, we cannot handle ~10% of caDSR CDEs due to not handling these types.

Supporting some of these datatypes may be non trivial if we assume that we also validate that supplied values conform to the specified datatype.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.