Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

WIP VOWL notation for owl #78

Open
wants to merge 74 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
74 commits
Select commit Hold shift + click to select a range
c7385b8
Select for owl has been added
toefl Oct 21, 2017
e911164
Export changed for class and datatype
toefl Oct 22, 2017
4de3a56
Changes for import owl templates bigIcon and defaultElement
toefl Oct 22, 2017
373a7af
Owl templates added
toefl Oct 22, 2017
c270701
Styles for datatypeProperty and ObjectProperty added
toefl Oct 22, 2017
943985e
<hr> tags color has been fixed
toefl Oct 22, 2017
6b3809e
Trying for add thing styles. Troubles with comment for Thing
toefl Oct 23, 2017
539dfb9
Problems with things comment was fixed
toefl Oct 24, 2017
497c495
Problems with comments was fixed.
toefl Oct 25, 2017
2333451
Merge branch 'master' of https://github.com/toefl/Ontodia-org
toefl Oct 25, 2017
f30038b
Tabulatioin
toefl Oct 25, 2017
ca0166b
Changes with templates color
Oct 28, 2017
0ea5e59
Owl marks were added
Oct 30, 2017
733ad20
Comments for owl notation were deleted.
Nov 2, 2017
7e853f0
Merge branch 'master' of https://github.com/ontodia-org/ontodia
Nov 5, 2017
e67ebbe
VOWL classes renamed
Nov 5, 2017
968cd58
Added possibility to use both visualization. Excess classes removed
Nov 8, 2017
517f58e
Merge branch 'master' of https://github.com/ontodia-org/ontodia
Nov 11, 2017
8850feb
Refactoring by comments Alexey
Nov 13, 2017
e17fb56
Installed TSLint. Fixed remarks
Nov 13, 2017
18bfa7a
Rename VOWLClass.tsx to vowlClass.tsx
toefl Nov 13, 2017
504eb09
Refactoring by comments Alexey
Nov 29, 2017
e0b6ef4
Merge branch 'master' of https://github.com/toefl/ontodia
Nov 29, 2017
ec65573
refactoring
Nov 29, 2017
31caaf5
Rename _vowlClass.scss to _VowlClass.scss
toefl Nov 29, 2017
3862ae3
Rename _vowlProperty.scss to _VowlProperty.scss
toefl Nov 29, 2017
12ce8a2
Rename vowlClass.tsx to VowlClass.tsx
toefl Nov 29, 2017
a2d7123
Update main.scss
toefl Nov 29, 2017
26b1010
corrected typos
Nov 29, 2017
8965c51
Merge branch 'master' of https://github.com/toefl/ontodia
Nov 29, 2017
1f87b6c
Merge branch 'master' of https://github.com/ontodia-org/ontodia
Dec 3, 2017
0d445c6
IE11 Compatibility. (Export PNG/SVG)
Ladone3 Jan 10, 2018
eac5133
Clearing code for PR.
Ladone3 Jan 23, 2018
ebdd46e
Function isFinite was moved to polyfills.ts. Unnecessary dependencies…
Ladone3 Jan 24, 2018
ae6ecd9
Fixes after getting changes
Jan 28, 2018
2e6571d
Rename VowlClass.tsx to vowlClass.tsx
toefl Jan 28, 2018
ca0af3d
Rename VowlProperty.tsx to vowlProperty.tsx
toefl Jan 28, 2018
70f04e3
rdfLoader was improved. In case of getting file fetching error we thr…
Feb 1, 2018
09857e9
Updated linkConfigurations processing to reflect recent linkTypesOf c…
yuricus Feb 6, 2018
afcd1ff
Fix exporting PNG, add SUPPORT_IE environment variable to build with …
AlexeyMz Jan 30, 2018
29093da
Merge pull request #87 from ontodia-org/IE11-compatibility
AlexeyMz Feb 6, 2018
e8df5ee
Add ability to set external widgets, expose internal events and methods:
Ladone3 Jan 30, 2018
bf2bb2e
Naming changes related to internal API
AlexeyMz Feb 6, 2018
91248ae
Merge pull request #93 from ontodia-org/external-widgets
AlexeyMz Feb 6, 2018
dea0aad
Fix styles of the links labels
Feb 5, 2018
676a908
Refactor LinkLayer, use getBBox() to measure link labels
AlexeyMz Feb 7, 2018
9f0dfd5
Merge pull request #91 from ontodia-org/links-labels-styles
AlexeyMz Feb 7, 2018
413109a
Add missing IE polyfills, don't render property table in collapsed de…
AlexeyMz Feb 7, 2018
dbec30c
Add pointer callbacks to the API, fix loading spinner centering (#94)
blolg Feb 7, 2018
7c704f2
Add checking the existence of a link marker in the mount callback (#95)
blolg Feb 8, 2018
334206a
Update README.md
Feb 12, 2018
a2ed2e1
Add rewriting https to http when we create element. (#97)
Feb 15, 2018
97c7138
Improve error indication. (#100)
Feb 15, 2018
9f49263
Support element nesting, import RDF data, merge composite statistics.
Dec 13, 2017
79e0cb8
Refactor DiagramModel, fix InstancesSearch, use better typings for El…
AlexeyMz Feb 15, 2018
11682ae
Add .iri helper property to DiagramElement
AlexeyMz Feb 22, 2018
ef83da8
Merge pull request #81 from ontodia-org/nested-nodes
AlexeyMz Feb 22, 2018
4c3b9c3
Fix bug with self-routing. Add halo refresh on connectionMenu hiding.…
Feb 22, 2018
eb4e550
Add .panning property and fire PointerEvent even if modifier key is p…
Feb 22, 2018
e7d1c1c
Make PaperArea available from workspace, rename internal_ prefix to j…
Feb 26, 2018
df4cc15
Remove the uri2name from rdf/sparql data providers and check labels i…
Ladone3 Feb 14, 2018
9a97996
Extract getLocalizedText() logic into formalLocalizedLabel()
AlexeyMz Feb 26, 2018
43413e4
Merge pull request #96 from ontodia-org/fixing-labels
AlexeyMz Feb 26, 2018
cbdf339
Update CHANGELOG.md
AlexeyMz Feb 26, 2018
9cc1228
Fix and refactor RdfDataProvider: (#98)
Mar 2, 2018
e5a6d71
Vectorize "delete", "navigate" and "close navigation" icons in Halo
AlexeyMz Mar 5, 2018
6fcee50
Refactor module structure
AlexeyMz Mar 5, 2018
c3a5c1b
Reverted changing element IRI from https to http
yuricus Mar 13, 2018
5f16dfe
Polyfill the remove method in IE (#104)
blolg Mar 14, 2018
cf2e16d
Fixed OWL/RDFS SPARQL config to display only links user can navigate …
yuricus Mar 20, 2018
6a7c308
Ontodia tree. Work in propgress.
Mar 28, 2018
101dde8
File to import has been renamed
Mar 28, 2018
b30fb6c
Rename _VowlClass.scss to _vowlClass.scss
toefl Mar 28, 2018
d842e88
Rename _VowlProperty.scss to _vowlProperty.scss
toefl Mar 28, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,44 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [Latest]
## [0.8.0]
### Added
- Nesting (grouping) elements on diagram using `groupBy` option and `<EmbeddedLayer />`
element in custom templates.
- Buttons to toggle visiblility of left and right panels.
- `renderTo` function to create Workspace using compiled in bundled mode library.
- Separate library bundle for IE11 compatibility (when compile with SUPPORT_IE flag).

### Changed
- **[Breaking]** Replaced JointJS rendering engine with our own React-based
implementation.
- **[Breaking]** Replaced Backbone property and event system with native class
properties and composition-based event emitter implementation.
- **[Breaking]** Generate placeholder data only when rendering, e.g. `Element.data.label`
will be empty until element info will load.
- **[Breaking]** Split up `isViewOnly` option into `hideToolbar`, `hidePanels`
and `hideHalo`.
- Removed default "checkboard" background in the diagram area.
- Limit maximum number of connected elements in Connection menu to 100.

### Fixed
- Drag and drop from class tree in Safari.
- Missing "All" entry in Connections menu when there are two connections with
the same ID in the list.
- Rewrite `https://` IRIs to `http://` when adding an element to diagram.

## [0.7.0]
### Changed
- **[Breaking]** Optimize `SparqlDataProvider`: change `elementInfoQuery` from SELECT to
CONSTRUCT query, extract `linkTypesOf` statistics into separate `linkTypesOfStatsQuery`.
- **[Breaking]** Throw exception instead of returning null or undefined when fetching
error happens in `RdfDataProvider`.
- Simplify overriding default toolbar with a custom one by providing default
callbacks in props.

### Fixed
- `stroke-dasharray` style override for link labels.
- Error when RDF data storage returns `undefined` statements.

## [0.6.1] - 2017-10-17
### Added
Expand Down Expand Up @@ -241,6 +279,8 @@ info loaded from `DataProvider`.
- Ontodia published on GitHub as OSS project.

[Latest]: https://github.com/ontodia-org/ontodia/compare/v0.6.1...HEAD
[0.8.0]: https://github.com/ontodia-org/ontodia/compare/v0.8.0...v0.6.1
[0.7.0]: https://github.com/ontodia-org/ontodia/compare/v0.7.0...v0.6.1
[0.6.1]: https://github.com/ontodia-org/ontodia/compare/v0.6.0...v0.6.1
[0.6.0]: https://github.com/ontodia-org/ontodia/compare/v0.5.3...v0.6.0
[0.5.3]: https://github.com/ontodia-org/ontodia/compare/v0.5.2...v0.5.3
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ It was designed to visualize RDF data sets in particular, but could be tailored
## How to try it?

You can:
- Open ontodia.org [demo diagram](http://app.ontodia.org/diagram?sharedDiagram=49689f29-82bc-405d-b5f6-33507f1c1444) and navigate through demo data set
- Open ontodia.org [demo diagram](http://app.ontodia.org/diagram?sharedDiagram=3vi9gi6akh9agrs9a7k7i14huo) and navigate through demo data set
- Create an account at [ontodia.org](http://app.ontodia.org/register), browse through sample diagrams, download your rdf file or point to your sparql endpoint to build diagrams over your data
- Follow developer tutorials at [developer documentation page](https://github.com/ontodia-org/ontodia/wiki)

Expand Down
Binary file removed images/close-connections.png
Binary file not shown.
15 changes: 15 additions & 0 deletions images/close-connections.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed images/connections.png
Binary file not shown.
15 changes: 15 additions & 0 deletions images/connections.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed images/delete.png
Binary file not shown.
12 changes: 12 additions & 0 deletions images/delete.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
106 changes: 106 additions & 0 deletions images/delete_source.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed images/transparent-background.png
Binary file not shown.
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
},
"dependencies": {
"d3-color": "~1.0.2",
"file-saverjs": "~1.3.6",
"intro.js": "1.1.1",
"lodash": "~4.17.4",
"n3": "~0.10.0",
Expand All @@ -53,16 +54,18 @@
"@types/lodash": "4.14.63",
"@types/react": "0.14.55",
"@types/react-dom": "0.14.19",
"canvg-fixed": "1.0.0",
"css-loader": "0.23.1",
"dts-bundle": "0.7.2",
"es6-promise": "4.2.2",
"exports-loader": "0.6.3",
"expose-loader": "0.7.1",
"file-loader": "0.8.5",
"html-webpack-plugin": "2.22.0",
"jquery": "2.2.4",
"json-loader": "0.5.4",
"jstree": "3.2.1",
"jquery": "2.2.4",
"node-sass": "3.10.1",
"node-sass": "4.7.2",
"raw-loader": "0.5.1",
"rdf-parser-jsonld": "0.3.3",
"rdf-parser-n3": "0.3.0",
Expand All @@ -72,6 +75,7 @@
"sass-loader": "4.0.2",
"style-loader": "0.13.1",
"ts-loader": "1.3.3",
"tslib": "1.9.0",
"tslint": "4.5.1",
"typescript": "2.3.2",
"url-loader": "0.5.7",
Expand Down
2 changes: 2 additions & 0 deletions src/emptyModule.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/** Empty module for conditional compilation. */
export default undefined;
64 changes: 64 additions & 0 deletions src/examples/demoOwl.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
import { createElement, ClassAttributes } from 'react';
import * as ReactDOM from 'react-dom';

import { Workspace, WorkspaceProps, DemoDataProvider, LinkTemplate, VowlTemplateBundle } from '../index';

import { onPageLoad, tryLoadLayoutFromLocalStorage, saveLayoutToLocalStorage } from './common';

const CUSTOM_LINK_TEMPLATE_SUBCLASSOF: LinkTemplate = {
renderLink: () => ({
connection: {
stroke: 'black',
'stroke-width': 2,
'stroke-dasharray': '5,5',
},
label: {
attrs: { text: { fill: 'black' } },
},
}),
};
const CUSTOM_LINK_TEMPLATE: LinkTemplate = {
renderLink: () => ({
connection: {
stroke: 'black',
'stroke-width': 2,
},
label: {
attrs: { text: { fill: 'black' } },
},
}),
};

function onWorkspaceMounted(workspace: Workspace) {
if (!workspace) { return; }

const layoutData = tryLoadLayoutFromLocalStorage();
workspace.getModel().importLayout({
layoutData,
dataProvider: new DemoDataProvider(),
validateLinks: true,
});
}

const props: WorkspaceProps & ClassAttributes<Workspace> = {
ref: onWorkspaceMounted,
onSaveDiagram: workspace => {
const { layoutData } = workspace.getModel().exportLayout();
window.location.hash = saveLayoutToLocalStorage(layoutData);
window.location.reload();
},
viewOptions: {
linkTemplateResolvers: [
type => {
if (type.indexOf('subClassOf') !== -1) {
return CUSTOM_LINK_TEMPLATE_SUBCLASSOF;
} else {
return CUSTOM_LINK_TEMPLATE;
}
},
],
templatesResolvers: VowlTemplateBundle,
},
};

onPageLoad(container => ReactDOM.render(createElement(Workspace, props), container));
32 changes: 18 additions & 14 deletions src/examples/rdf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,28 @@ const data = require<string>('raw-loader!./resources/testData.ttl');
function onWorkspaceMounted(workspace: Workspace) {
if (!workspace) { return; }

const dataProvider = new RDFDataProvider({
data: [
{
content: data,
type: 'text/turtle',
fileName: 'testData.ttl'
},
],
acceptBlankNodes: false,
dataFetching: false,
parsers: {
'application/rdf+xml': new RdfXmlParser(),
'application/ld+json': new JsonLdParser(),
'text/turtle': new N3Parser(),
},
});

const layoutData = tryLoadLayoutFromLocalStorage();
workspace.getModel().importLayout({
layoutData,
validateLinks: true,
dataProvider: new RDFDataProvider({
data: [
{
content: data,
type: 'text/turtle',
},
],
dataFetching: false,
parsers: {
'text/turtle': new N3Parser(),
'application/rdf+xml': new RdfXmlParser(),
'application/ld+json': new JsonLdParser(),
},
}),
dataProvider,
});
}

Expand Down
Loading