Giter Site home page Giter Site logo

rub-informatik-im-bauwesen / idpo-gen Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 52 KB

The Information Delivery Processes Ontology (IDPO) Ontology is defined in under namespace https://w3id.org/idpo#. This repository contains a JAX-RS webservice for converting BPMN-XML files into IDPO instances using SPARQL-Generate.

Home Page: https://w3id.org/idpo

License: GNU General Public License v3.0

Java 100.00%
bpmn bim idpo xml rest jax-rs sparql-generate

idpo-gen's Introduction

idpo-generation

Working example

Run application

  • this application bases on https://github.com/sparql-generate/sparql-generate
  • however, to process BPMN-XML files with CamelCase XML-Nodes, the generation of IDPO or BPMN instances only works with the following fork: https://github.com/philhag/sparql-generate using the raw XML string instead of validating and prettyfing it first
  • the webservice can be startet from Main.java and listens on http://localhost:8080/
  • conversion can be startet using HTTP POST http://localhost:8080/convert for IDPO and HTTP POST http://localhost:8080/convertBPMN with application/xml body content

Example Query

  • Example:
curl --location --request POST 'http://localhost:8080/convertBPMN /' 
--header 'Content-Type: application/xml' 
--data-raw '<?xml version="1.0" encoding="UTF-8" standalone="no"?>
	<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC" xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" exporter="bpmn-js (https://demo.bpmn.io)" exporterVersion="8.2.2" id="sid-38422fae-e03e-43a3-bef4-bd33b32041b2" targetNamespace="http://bpmn.io/bpmn">  
		<collaboration id="Collaboration_XYZ123" >    
			<participant id="Participant_XYZ123" name="User 1" />
        </collaboration>              		
	 	</definitions>' 
  • Result:
@prefix instances: <http://w3id.org/idpo/instances/> .  
@prefix xsd:   <http://www.w3.org/2001/XMLSchema#> .  
@prefix rdfs:  <http://www.w3.org/2000/01/rdf-schema#> .  
@prefix bpmn2: <https://www.omg.org/spec/BPMN/2.0#> .  
@prefix ite:   <http://w3id.org/sparql-generate/iter/> .  
@prefix fun:   <http://w3id.org/sparql-generate/fn/> .  

instances:Collaboration_XYZ123  
        a       bpmn2:Collaboration .  
        
instances:Participant_XYZ123  \
        a           bpmn2:Participant ;  
        bpmn2:name  "User 1" .

idpo-gen's People

Contributors

philhag avatar

Watchers

 avatar  avatar

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.