Coder Social home page Coder Social logo

cfsn's Introduction

cfsn

A CF Standard Names Vocabulary browser -- prototype

Deployment available at https://mmisw.org/cfsn

See the wiki for documentation.

Trying cfsn locally:

  1. Clone the repo git clone https://github.com/mmisw/cfsn.git
  2. Make the app/ directory accessible from your web server
  3. Open the index file in your browser

Typically you will want or need a local web server for the step 2 above. If you have nodejs installed on your system, you can do the following:

$ npm install http-server -g
$ http-server
Starting up http-server, serving ./ on port: 8080
Hit CTRL-C to stop the server

and then open http://localhost:8080/app/

Noteworthy changes

  • 0.1.6: fixing #24

  • 0.1.5: fix #23

  • 0.1.4: general info in separate lines and other minor adjustments.

  • 0.1.3: preliminary mappings included.

  • 0.1.2: general info retrieved from endpoint.

  • 0.1.1: filtering by category as here but allowing multiple selection and applied as a first filter.

  • 0.1.0: global search modes: glob and regex.

  • 0.0.5: preliminary inclusion of term links against NVS.

  • 0.0.3: options: change page size; showAll button.

  • 0.0.2: cache; better hyperlinking in descriptions.

cfsn's People

Contributors

carueda avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

graybealski

cfsn's Issues

add number of terms _displayed_ to front page

The front page shows the number of terms in the whole vocabulary; it should also show the number displayed given the current search.

Could show this as "Number displayed: ####" (directly under the Number of Terms line), or as "Number of Terms In Vocabulary" vs "Number of Terms Displayed"

Look at related work for good concepts

Just initially capturing interesting pointers provided here ioos/catalog#72 (comment)

on the topic of CF standard_name navigation and parsing, here are some resources (documentation and online systems) I find useful. Some are outdated, but still pretty useful or demonstrate useful ways of skinning the CF SN cat:

include mappings sections in term view

In the term view include mapping sections (in principle, one per semantic repository and/or SPARQL endpoint) with:

  • Mapped terms according to SKOS properties (exactMatch, closeMatch, etc.,), OWL's sameAs property, and others.
  • Counts of mappings for the term.

The retrieved URIs will be rendered with hyperlinks as appropriate but further navigation will in general be via direct opening of those links and not through this tool.

Is NVS sparql endopoint CORS enabled?

When making request to http://vocab.nerc.ac.uk/sparql/sparql sometimes a 404 error is reported with the log showing:

No 'Access-Control-Allow-Origin' header is present on the requested resource.

So, check with NERC about actual status of this capability.

Make cell contents break lines even if a long word

CF SN include some loooong terms, which force the cell widths in tables to the maximum term size.

This can be overridden with the CSS style
word-wrap: break-word; (and maybe also overflow-wrap: break-word)
for the cells in question. (see e.g., http://stackoverflow.com/questions/3058866/how-to-force-a-line-break-in-a-loooooong-word-in-a-div for details.)

I think it would be nice to have this as the formatting for our table cells. (Though once I see it I might change my mind....)

missing terms

Tool shows 2489 total terms but the original vocabulary has more.

canonical units links

The idea here is to provide link(s) from this field to the associated units definition(s) in some semantic repository.

In general, we would probably need to parse the string according to the unit grammar to properly extract the relevant components for a comprehensive association of links. However, unless there is already some Javascript library for this purpose, we can simply tokenize the string and provide links only for the atomic components that have corresponding symbols in the UDUNITS vocabularies.

Refs:

fix field rendering in firefox

and possibly other browsers (testing so far has only been on Chrome), for example, on firefox 30.0 on a Mac the search and page fields are not displayed correctly:

image

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.