Coder Social home page Coder Social logo

antonioaltamura / lodmusic Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 2.0 31.84 MB

A Web application for the management of music themed knowledge base built on dbpedia.com ontologies in Node.js and Apache Jena Fuseki

JavaScript 40.58% CSS 49.16% HTML 9.90% PHP 0.37%

lodmusic's Introduction

LodMusic

LODMusic1


Installazione

npm install

Avvio del server

node bin/www

Applicazione disponibile all'indirizzo localhost:3000

Importazione dei dati (cartella extractorData)

La query deve essere scritta in un file di testo chiamato query.txt (o cambiare il nome del parametro passato alla funzione readQuery in riga 56).

La query da eseguire deve terminare con OFFSET (e uno spazio).

Il file per l'estrazione possiede una funzione sparqlQuery che si occupa di preparare la richiesta HTTP all'endpoint passato come secondo parametro.

La funzione saveFile prende in input un file e memorizza al suo interno i risultati della query. Il file è salvato in formato .ttl (riga 69) per salvare i dati in turtle.

La variabile $chunk è utilizzata per creare il valore dello spiazzamento: ogni query ottiene 40000 triple da dbpedia. Lo spiazzamento è obbligatorio a causa del limite imposto da dbpedia.

La variabile $nullPoint deve essere modificata in base al formato richiesto per la query: ad esempio # Empty TURTLE "; se richiediamo i dati in rdf.

Per debug sono stati stampati a schermo:

  • la query
  • il numero di iterazione
  • la stringa "Finish" per indicare il termine dell'operazione

Autori

  • Antonio Altamura
  • Mario Villani
  • Alessandra Zullo

LODMusic2

LODMusic3

LODMusic4

LODMusic5

lodmusic's People

Contributors

antonioaltamura avatar alessandrazullo avatar mariovillani avatar

Watchers

 avatar  avatar

Forkers

daddriel

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.