Coder Social home page Coder Social logo

p2m2 / discovery Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 1.0 64.8 MB

Discovery provides a powerful toolset for developers who are looking to build UIs using RDF data in an a robust software development process

Home Page: https://p2m2.github.io/discovery/

License: MIT License

Scala 96.26% Shell 0.34% TypeScript 2.94% Dockerfile 0.12% HTML 0.33%
semantic-web rdf sparql-query-builder sparql scala scalajs endpoint-discovery discovery

discovery's People

Contributors

ofilangi avatar

Watchers

 avatar  avatar

Forkers

emetabohub

discovery's Issues

management QueryVariable/Something

              .focus(focus)
              .isSubjectOf(new QueryVariable("property"))
                  .filter.isLiteral
                    .focus("property")
                    .datatype(new URI("rdfs#label"),"labelProperty")
SELECT * WHERE {
 ?something0 ?property ?object0 .
 FILTER ( isLiteral(?object0) )
 { { ?property [] [] } UNION { [] ?property [] } UNION { [] [] ?property } }
 }'

'browse' interface

add 'browse' feature to get tree structure

SWDiscovery.browse( visitor_function : (node) -> None )

Erreur handler with Typescript

 const str = new SWDiscovery(this.config).something("hello").getSerializedString()
 const t : SWDiscovery = new SWDiscovery(this.config).setSerializedString(str)
 t.console()

error

discovery-opt.js?c527:710 Uncaught (in promise) TypeError: Cannot read property 'Ne' of undefined
    at new xF (discovery-opt.js?c527:710)
    at new uK (discovery-opt.js?c527:749)
    at new exports.SWDiscovery (discovery-opt.js?c527:1876)
    at Proxy.parse (RequestManager.ts?212b:84)
    at Proxy.created (QueryBuilder.vue?33a3:54)
    at callWithErrorHandling (runtime-core.esm-bundler.js?5c40:154)
    at callWithAsyncErrorHandling (runtime-core.esm-bundler.js?5c40:163)
    at callHook (runtime-core.esm-bundler.js?5c40:3178)
    at applyOptions (runtime-core.esm-bundler.js?5c40:3108)
    at finishComponentSetup (runtime-core.esm-bundler.js?5c40:7231)

check

sw.check()

check configuration. ability to reach endpoint

[Configuration]prefixes

prefixes : {
       owl : 'http://www.w3.org/2002/07/owl#',
       foaf: 'http://xmlns.com/foaf/0.1/',
   },

limit and offset can not be used => transform seq to a js.Array type

 @JSExport
  def select(lRef: Seq[String], limit : Int = 0, offset : Int = 0): SWTransactionJs =
    SWTransactionJs(sw.select(lRef,limit,offset))
 @JSExport
  def select(lRef: js.Array[String], limit : Int = 0, offset : Int = 0): SWTransactionJs =
    SWTransactionJs(sw.select(lRef,limit,offset))

remove node

remove node on the query tree

SWDiscovery.remove(focus : String)

Typescript call transaction.progression

discovery-opt.js?c527:1100 Uncaught (in promise) TypeError: f.$g is not a function
    at eval (discovery-opt.js?c527:1100)
    at B.v (discovery-opt.js?c527:631)
    at Yf.d.xa (discovery-opt.js?c527:1741)
    at JQ (discovery-opt.js?c527:1100)
transaction.progression( (percent : Number) => {
                        console.log("percent:"+percent)
                    })

getDecoration

retrieve decoration (using decorate function) during the build

Réintegrer le test federation

./shared/src/test/scala/inrae/semantic_web/driver/RequestsTest.scala
test desactiver car non fonctionnel apres une mise à jours de comunica

ScalaJsTest get no results when trying reach a url file.

Fix126UrlFileUnusedVariable
does not work.

work well in browser side

<script type="text/javascript" src="https://cdn.jsdelivr.net/gh/p2m2/discovery@unused_var_126/dist/discovery-web.min.js"> </script> 
<script>

let config = SWDiscoveryConfiguration.setConfigString(`
          {
          "sources" : [{
		  "id"        : "file_metabo",
		  "url"       : "http://localhost:8080/animals_basic.ttl",
		  "mimetype"  : "text/turtle"
           }],
          "settings" : {
           "logLevel" : "all"
           }
           }
          `)
SWDiscovery(config)
          .prefix("ns0","http://www.some-ficticious-zoo.com/rdf#")
          .something("animal")
          .datatype("ns0:name","name")
          .select("animal","name")
          .console()
          .commit().raw().then((response) => {
		 console.log(JSON.stringify(response) );
	  }).catch( (error) => {
	         console.error(" -- catch exception --")
	         console.error(error)
	  } );

</script>

html_results

display an html page by page with "next" and "previous" results

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.