You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampipes.apache.org by ri...@apache.org on 2020/06/28 21:41:25 UTC

[incubator-streampipes] 03/06: [STREAMPIPES-145] Remove RDFmapper from StreamPipes Connect

This is an automated email from the ASF dual-hosted git repository.

riemer pushed a commit to branch STREAMPIPES-145
in repository https://gitbox.apache.org/repos/asf/incubator-streampipes.git

commit 5b522e9adb055c86b27cd7091b1acbfdd2c57df9
Author: Dominik Riemer <ri...@fzi.de>
AuthorDate: Sun Jun 28 12:59:29 2020 +0200

    [STREAMPIPES-145] Remove RDFmapper from StreamPipes Connect
---
 ui/src/app/connect/rdfmapper/Person.ts            | 24 ---------
 ui/src/app/connect/rdfmapper/rdfmapper.service.ts | 61 -----------------------
 2 files changed, 85 deletions(-)

diff --git a/ui/src/app/connect/rdfmapper/Person.ts b/ui/src/app/connect/rdfmapper/Person.ts
deleted file mode 100644
index 30bf1c3..0000000
--- a/ui/src/app/connect/rdfmapper/Person.ts
+++ /dev/null
@@ -1,24 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *    http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-
-export class Person {
-
-  constructor(public name: String) {
-  }
-
-}
diff --git a/ui/src/app/connect/rdfmapper/rdfmapper.service.ts b/ui/src/app/connect/rdfmapper/rdfmapper.service.ts
deleted file mode 100644
index c723fce..0000000
--- a/ui/src/app/connect/rdfmapper/rdfmapper.service.ts
+++ /dev/null
@@ -1,61 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *    http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-
-import 'reflect-metadata';
-
-import {Injectable} from '@angular/core';
-import {Person} from './Person';
-
-@Injectable()
-export class RdfmapperService {
-
-  constructor() { }
-
-  testRdfMapper() {
-    const obj = JSON.parse(this.getExamplePersonRDF());
-
-    this.fromJsonLd(obj, Person);
-  }
-
-  toJsonLd() {
-    const p = new Person('Hans');
-
-    const result = Reflect.getOwnMetadataKeys(p);
-    console.log(result);
-    console.log(JSON.parse(this.getExamplePersonRDF()));
-  }
-
-  fromJsonLd(obj: Object, p: any) {
-
-
-    return new Person('Hans');
-  }
-
-  getExamplePersonRDF(): string {
-    return '{\n' +
-      '  \"@id\"\: \"empire:CEFE7BAB6A9861D402FAB73A68478AF8\",\n' +
-      '  \"@type\" : \"http://sepa.event-processing.org/streampipes#Person\",\n' +
-      '  \"http://sepa.event-processing.org/streampipes#name\" : \"Hans\",\n' +
-      '  \"@context\" : {\n' +
-      '    \"sp\" : \"http://sepa.event-processing.org/sepa#\",\n' +
-      '    \"empire\" : \"urn:clarkparsia.com:empire:\"\n' +
-      '  }\n' +
-      '}';
-  }
-
-}