Giter Club home page Giter Club logo

cswlodenabler's Introduction

CSW to LOD Translator

This project maps the entries of an OGC Catalog (CSW, http://www.opengeospatial.org/standards/cat) to Linked Open Data using Jena (https://jena.apache.org/) and inserts the results into a Virtuoso Triple Store (http://virtuoso.openlinksw.com/dataspace/doc/dav/wiki/Main/). This software is developed in the project GLUES.

Features

  • Supports CSW version x.x

Build Requirements

The project uses Maven (http://maven.apache.org/).

To make this work the following non-Maven libs need to be downloaded and installed to the local repository manually:

Build, Configure, and Run

The project is best run by importing it into an Eclipse workspace. Command-line execution of the main class CSWLoDEnabler is possible but not documented yet.

Create configuration file

Go to src/main/resources and create a copy of the file lod.properties.original under the name lod.properties. Open it and adjust the Virtuoso user and password.

Virtuoso

Pubby

This is a pubby configuration file for using pubby with a Virtuoso running on the default port on localhost for the GLUES dataset, i.e. pubby is deployed at http://localhost:8080/glues-lod/.

# Pubby: http://wifo5-03.informatik.uni-mannheim.de/pubby/
# Example config file: http://wifo5-03.informatik.uni-mannheim.de/pubby/config.ttl

# Prefix declarations to be used in RDF output
@prefix conf: <http://richard.cyganiak.de/2007/pubby/config.rdf#> .
@prefix meta: <http://example.org/metadata#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix dc: <http://purl.org/dc/elements/1.1/> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix geo: <http://www.w3.org/2003/01/geo/wgs84_pos#> .
@prefix dbpedia: <http://localhost:8080/resource/> .
@prefix p: <http://localhost:8080/property/> .
@prefix yago: <http://localhost:8080/class/yago/> .
@prefix units: <http://dbpedia.org/units/> .
@prefix geonames: <http://www.geonames.org/ontology#> .
@prefix prv:      <http://purl.org/net/provenance/ns#> .
@prefix prvTypes: <http://purl.org/net/provenance/types#> .
@prefix doap:     <http://usefulinc.com/ns/doap#> .
@prefix void:     <http://rdfs.org/ns/void#> .
@prefix ir:       <http://www.ontologydesignpatterns.org/cp/owl/informationrealization.owl#> .
@prefix glues:	<http://glues.52north.org/> .
@prefix prov:	<http://www.w3.org/ns/prov#> .
@prefix vcard:	<http://www.w3.org/2001/vcard-rdf/3.0#> .

<> a conf:Configuration;
    conf:projectName "GLUES LOD";
    conf:projectHomepage <http://nachhaltiges-landmanagement.de/en/scientific-coordination-glues/>;
	conf:webBase <http://localhost:8080/glues-lod/>;#this will replace the URI_BASE (conf:datasetbase respectively) in the pubby browser
    conf:usePrefixesFrom <>;
    conf:defaultLanguage "en";
    
	conf:indexResource <http://metadata.demo.52north.org/glues/resource/project/GLUES>;#reference to an entity including URI_BASE
	
	conf:labelProperty rdfs:label, dc:title, foaf:name;
	conf:commentProperty rdfs:comment, dc:description;
	conf:imageProperty foaf:depiction;
	
    conf:dataset [
		conf:sparqlEndpoint <http://localhost:8890/sparql>;
        #conf:sparqlDefaultGraph <http://metadata.demo.52north.or/glues-lod/2014-08-28A>;#must correspond to URI_GRAPH property of lod.properties
        conf:datasetBase <http://metadata.demo.52north.org/glues>;#must correspond to URI_BASE property (including slashes)
        conf:webResourcePrefix "";
		conf:addSameAsStatements "true";
		
		#conf:metadataTemplate "metadata.ttl";
    ];
    .

Finding issues

To discover issues with data that is retrieved from a catalog, a specific log file /logs/csw2lod-issues.log exists that contains all warnings and errors that occured during each seperate execution. More detailed logging is in the other logging files in /logs.

Development

Some development notes:

Contact / Support

Contact: Daniel Nüst ([email protected])

For support questions, please contact the 52°North Metadata Community mailing list: http://52north.org/resources/mailing-list-and-forums/

License

This project is licenses under GNU General Public License, version 2.0. For details see the LICENSE file, for information about the used libraries see the NOTICE file.

cswlodenabler's People

Contributors

bpross-52n avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cswlodenabler's Issues

Project's name

To me the "...enabler" name is a bit clunky. Let's collect some ideas here:

  • Linked Open CSW
  • LCSW
  • LinkedCSW

Related projects and architecture review

We should make a review of related projects and after this demonstration prototype and reconsider the architecture. It might be possible that we can extend existing software (that harvests CSW services and published LoD) to support the specific features needed in this project. Some links:

Architecture links:

Add unit tests, fix integration tests

Add unit tests for main functionality.

The existing tests are integration tests and should be named that way and be extended to work with and actual/configurable on-line virtuoso server. The (integration) tests should actually "assertThat" the response is as it is expected.

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.