Giter Club home page Giter Club logo

xturtle's Introduction

Xturtle

Xturtle is a turtle editor solution based on eclipse / Xtext2. It features syntax highlighting, code completion (resource qnames, datatypes, language tags, literals, prefixes and namespace URIs from prefix.cc), templates, syntax validation, internal linking to descriptions, preview of resources, navigation, outline and quick outline, folding (prefixes, subject blocks, multiline literals) and multiple customization options including syntax highlighting.

This screenshot shows an example Xturtle workspace with an open turtle file from a project which imports several other projects (including the core project). The image demonstrates some error, warning and info messages, the resource preview via description attributes, the outline as well as folding capabilities.

For more information esp. on installation, usage and features, please have a look at our wiki pages

xturtle's People

Contributors

atextor avatar emres avatar fsteeg avatar nittka avatar seebi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

xturtle's Issues

Xtext

I think, I have a problem with XText, I downloaded the new Kepler on Ubuntu 12.04 and it wouldn't let me install 2.3.1, but only Xtext UI 2.4.2.v201306120542 org.eclipse.xtext.ui.feature.group Eclipse Modeling Project
Is this a problem, because it is not working for me, all namespaces show errors.

I put the workspace in the folder, zipped it and shipped it here: http://nlp2rdf.lod2.eu/eclipse.tar.gz

Maybe it is just me. By the way, the docu here is mentioning 2.3.1 https://github.com/AKSW/Xturtle/wiki/Installation and here it mention nothing:
http://aksw.org/Projects/Xturtle.html

Doesn't eclipse have a mechanism to install missing dependencies automatically?

empty prefix warned as unused

e.g. usage of

@prefix : <http://www.w3.org/2004/02/skos/core#> .

is currently warned with "unused prefix" but it is used multiple times (see skos.ttl in vocabulary branch)
.

internal error: Updating editor state

I tried to edit the owl.ttl from the vocabulary branch to delete some grddl lines in order to have a clean xturtle file but got this error:

An internal error occurred during: "Updating editor state".

java.lang.ClassCastException

prototype 0.0.1

prototype for linking concepts:

prefix definition, simple triples, no literals, no blank nodes

Every single RDF and RDFS term is highlighted as an error

The editor does not always appear to be able to download namespace definitions correctly which means it highlights every usage of a term in the namespace as an error.

Screen Shot 2013-02-13 at 11 47 02 AM

This is particularly annoying for a well known and commonly used namespaces like RDF/RDFS.

Firstly it should be possible to turn these errors off or treat them as warnings instead.

Secondly it would be ideal if the editor either cached locally or had built in certain very common namespace definitions like RDF, RDFS and OWL so if these can't be obtained for any reason the local copies can be used.

auto addition of namespace file xxx.ttl when adding a prefix xxx to a file

This is a little bit related to #18.

When I start with an empty project, its easy to create a new file where I add prefixes and resources.
However, it is not easy to add namespace files according to the prefix I've added.

Currently I copy them from the vocabulary branch but it would be better to auto add them to the project, maybe read only and in non-error mode as suggested in #18.

check highlighting

Please check the terminology (and the highlighting itself) for the hightlighting configuration in the editor's preference page. Most important are the entries for URIs, Qname prefix and simple name (class and property).
Except for resolved and unresolved URIs, I left the default. If you think there should be other colors to start with, let me know.

blank node parenthesis autotext

It would be nice to have a similar feature with blank node parenthesis than for quotation mark, means after
'[' the ']' is automatically added.

even better would be a

[
    <- cursor
]

but I'm not sure if everybody likes that, so [<cursor>] is save.

Internal SPARQL endpoint

It would be great to have an internal SPARQL endpoint incl. SPARQL query shell ready for a Xturtle workspace.

Feature Request: Quickfix missing definition by adding stubs to the corresponding turtle file

I have a file my_onto.ttl which contains the definitions of my domain-specific classes and properties and another file data01.ttl which defines a my_onto prefix.

When I'm editing data01.ttl and add a reference to a resource in the my_onto namespace that isn't defined, it would be cool, if Xturtle would react to Eclipse's Quickfix feature (Ctrl+1) and offer to add a stub definition to my_onto.ttl.

Or less complicated: Just create the definition in the current file and select it.

Wrong encoding detection

When I opened a file with ".txt" suffix, eclipse recognized the encoding properly; when I opened it with ".ttl", the representation of umlauts where broken.

Tested with a utf-8 without bom-file, eclipse juno; at first (during installation) default encoding was cp1252, later changed to utf-8.

prefix expected warning downgrade

I suggest to downgrade the "prefix xxx exprected" warning to an Info with wording
Prefix xxx recommended according to prefix.cc
or something like that.

disable errors/warnings for imported vocabulary files

When using schema files such as foaf.ttl, we always see lots of errors since foaf.ttl uses different other namespaces but we do not have that in our project.

there are different solutions to this problem:

1. We always import all files until the end.

this is not really an option since we always have then 20 files in our projects but want to use foaf + rdf/s/owl only.

2. we provide ttl files which are not connected to other files e.g. by removing everything which is not needed by the turtle editor

This could be a way but is lot of work and we need to do that for all new versions of a namespace again. Another drawback is, that when we jump e.g. to foaf:Person and only an rdfs:comment and rdfs:label is present since everything else was deleted, then this information is not useful - e.g. I miss the vs:status of the resource.

3. We do not throw errors and warning when files are marked as imported.

Maybe this could be combined with a readonly status since they are not in the space of the editor but outside.

base vocabulary projects

Provide eclipse projects with consistent base vocabulary, making it easy to start with a new turtle project. You know best which are the most widely used namespaces.
An xsd.ttl would be helpful, in particular for supporting code completion for data types.

Can't open editor, even on empty .ttl file

I simply do File->New->File... give it a name "foo.ttl" and it opens editor with the following error:

java.lang.IllegalArgumentException
at java.net.URI.create(URI.java:841)
at de.itemis.tooling.xturtle.resource.TurtleResourceIndex.resetMaps(TurtleResourceIndex.java:219)
at de.itemis.tooling.xturtle.resource.TurtleResourceIndex.initIndex(TurtleResourceIndex.java:73)
at de.itemis.tooling.xturtle.resource.DefaultTurtleResourceService.initialiseIndex(DefaultTurtleResourceService.java:66)
at de.itemis.tooling.xturtle.linking.TurtleLinker.beforeModelLinked(TurtleLinker.java:20)
at org.eclipse.xtext.linking.impl.AbstractCleaningLinker.linkModel(AbstractCleaningLinker.java:32)
at org.eclipse.xtext.resource.XtextResource.doLinking(XtextResource.java:279)
at org.eclipse.xtext.linking.lazy.LazyLinkingResource.doLinking(LazyLinkingResource.java:82)
at org.eclipse.xtext.resource.XtextResource.updateInternalState(XtextResource.java:247)
at org.eclipse.xtext.resource.XtextResource.updateInternalState(XtextResource.java:237)
at org.eclipse.xtext.resource.XtextResource.doLoad(XtextResource.java:160)
at org.eclipse.xtext.linking.lazy.LazyLinkingResource.doLoad(LazyLinkingResource.java:75)
at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1505)
at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1284)
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoad(ResourceSetImpl.java:259)
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoadHelper(ResourceSetImpl.java:274)
at org.eclipse.xtext.resource.XtextResourceSet.getResource(XtextResourceSet.java:159)
at org.eclipse.xtext.builder.resourceloader.SerialResourceLoader$1.next(SerialResourceLoader.java:45)
at org.eclipse.xtext.builder.resourceloader.AbstractResourceLoader$CheckedLoadOperation.next(AbstractResourceLoader.java:74)
at org.eclipse.xtext.builder.clustering.ClusteringBuilderState.writeNewResourceDescriptions(ClusteringBuilderState.java:316)
at org.eclipse.xtext.builder.clustering.ClusteringBuilderState.doUpdate(ClusteringBuilderState.java:113)
at org.eclipse.xtext.builder.builderState.AbstractBuilderState.update(AbstractBuilderState.java:105)
at org.eclipse.xtext.builder.impl.XtextBuilder.doBuild(XtextBuilder.java:159)
at org.eclipse.xtext.builder.impl.XtextBuilder.incrementalBuild(XtextBuilder.java:141)
at org.eclipse.xtext.builder.impl.XtextBuilder.build(XtextBuilder.java:91)
at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:728)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:199)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:239)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:292)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:295)
at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:351)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:374)
at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:143)
at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:241)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

Here is my system info:
eclipse.buildId=I20120608-1400
java.version=1.6.0_37
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US
Framework arguments: -product org.eclipse.epp.package.jee.product -keyring /Users/sspeiche/.eclipse_keyring -showlocation
Command-line arguments: -os macosx -ws cocoa -arch x86_64 -product org.eclipse.epp.package.jee.product -keyring /Users/sspeiche/.eclipse_keyring -showlocation

empty prefix should not lead to a warning

e.g. usage of

@prefix : <http://www.w3.org/2004/02/skos/core#> .

is currently warned with "skos suggested".

the main reason for that is, that if we doing it this way we can not edit the namespace document itself without warnings.

memory issues?

by David Jordan: Since installing Xturtle yesterday, my Eclipse has been getting out of memory errors. This has never happened before. Are there memory issues with Xturtle? My .ttl files are fairly small.

reorder autocompletion resultset

When I complete a line which ends with "foaf:Pers" it currently offers multiple lines which start and end with " (they are hits by search I guess) followed by hits which starts with : (they are hits by name/URI I guess).

Since URI hits are more accurate these two groups should be switched.

language tag autocompletion

language tags and matching of language tags is a complicated area which involves different subtags for eras, areas and other stuff. A complete list is maintained by the IANA but I do not know any RDF software which provides standard conform support here.

However, it would be nice to have basic language tag autocompletion. This can be done by providing a list in the options area which is used for autocompletion and which can be extended by the user.

I suggest to preconfigure this option with a list of the most spoken languages:

en
zh
hi
es
fr
ar
ru
pt
bn
de
ja
ko

Auto include of Ontologies

Hi again, just a comment, I got it running now. You can only add "Project References" after you downloaded other files into the project. In the old installation notes these steps were stated in reverse order. The documentation is better and in order now.

However, the ontologies I create have quite a heavy dependency to other ontologies, i.e.:
@Prefix rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns# .
@Prefix rdfs: http://www.w3.org/2000/01/rdf-schema# .
@Prefix owl: http://www.w3.org/2002/07/owl# .
@Prefix xsd: http://www.w3.org/2001/XMLSchema# .
@Prefix dcterms: http://purl.org/dc/terms/ .
@Prefix dc: http://purl.org/dc/elements/1.1/ .
@Prefix nif: http://persistence.uni-leipzig.org/nlp2rdf/ontologies/nif-core# .

@Prefix foaf: http://xmlns.com/foaf/0.1/ .
@Prefix nerd: http://nerd.eurecom.fr/ontology# .
@Prefix itsrdf: http://www.w3.org/2005/11/its/rdf# .
@Prefix prov: http://www.w3.org/ns/prov# .
@Prefix skosxl: http://www.w3.org/2008/05/skos-xl# .
@Prefix vs: http://www.w3.org/2003/06/sw-vocab-status/ns# .
@Prefix vann: http://purl.org/vocab/vann/ .
@Prefix oa: http://www.w3.org/ns/oa# .
@Prefix marl: http://purl.org/marl/ns# .
@Prefix fise: http://fise.iks-project.eu/ontology/ .

This is just an example. http://purl.org/olia offers over 50 different ontologies. Managing these manually is infeasible. I will skip using XTurtle right now, because I have some pressure to finish the project and I really don't see it working out in this state.
I will schedule an appointment with @seebi in the next weeks to sort this out and give detailed requirements for XTurtle to work with my project or find out whether what I am doing (developing ontologies in Turtle) is out of scope.

utf8 encoding problem

There is a problem with UTF8 encoding but I'm not sure if this is an xturtle, eclipse or my issue :-)

I've edited this project:
https://github.com/AKSW/dssn.rdf
which is a vocabulary namespace repository. In line 89 of namespace.ttl there is an ΓΆ which is shown in XTurtle as

Bildschirmfoto 2013-01-16 um 10 58 56

according to vim, file and github, the document is valid UTF8 so maybe its an eclipse or XTurtle problem.

namespace definition

IMHO namespace URIs does not need not end with hash or slash
(where does this come from?)

Why can't Xturtle find find definition for http://purl.org/dc/terms/abstract ?

After following the installation instructions at http://aksw.org/Projects/Xturtle.html I was able to install Xturtle, but when I tried to create a very simple file I received an error:

could not find defintion for http://purl.org/dc/terms/abstract

even though I have specified it in the beginning of file and it seems to be perfectly valid:

@Prefix dcterms: http://purl.org/dc/terms/ .

Why do I get this error?

The contents of the Turtle file is as follows:

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix ex: <http://example.org/stuff/1.0/> .

<http://www.w3.org/TR/rdf-syntax-grammar>
    dcterms:abstract "RDF/XML Syntax Specification (Revised)" ;
    ex:editor [
        ex:fullname "Dave Beckett";
        ex:homePage <http://purl.org/net/dajobe/>
    ] .

Interestingly, in one of the screenshots on https://github.com/AKSW/Xturtle (see: https://raw.github.com/wiki/AKSW/Xturtle/Screenshots/2013-01-02.png), http://purl.org/dc/terms/ is also used, but in that screenshot no error appears.

I have also attached the screenshot from my Eclipse session that shows the error highlighted.

xturtle

Cannot complete the install because of a conflicting dependency.

Ran into an installation error in Eclipse IDE for Java Developers Version: Indigo Service Release 2 Build id: 20120216-1857

error below
thanks for any help
mike

Cannot complete the install because of a conflicting dependency.
Software being installed: Xturtle feature 1.0.0 (de.itemis.tooling.xturtle.feature.feature.group 1.0.0)
Software currently installed: Eclipse IDE for Java Developers 1.4.2.20120213-0813 (epp.package.java 1.4.2.20120213-0813)
Only one of the following can be installed at once:
Core Runtime 3.8.0.v20120521-2346 (org.eclipse.core.runtime 3.8.0.v20120521-2346)
Core Runtime 3.7.0.v20110110 (org.eclipse.core.runtime 3.7.0.v20110110)
Cannot satisfy dependency:
From: Xturtle feature 1.0.0 (de.itemis.tooling.xturtle.feature.feature.group 1.0.0)
To: org.eclipse.core.runtime 3.8.0
Cannot satisfy dependency:
From: Eclipse IDE for Java Developers 1.4.2.20120213-0813 (epp.package.java 1.4.2.20120213-0813)
To: org.eclipse.epp.package.java.feature.feature.group [1.4.2.20120213-0813]
Cannot satisfy dependency:
From: EPP Java Package 1.4.2.20120213-0813 (org.eclipse.epp.package.java.feature.feature.group 1.4.2.20120213-0813)
To: org.eclipse.platform.feature.group [3.7.2.v20120207-1839-9gF7UHPDFxGjd-PqDr2jX_4yKaumkoHTz04_q-q]
Cannot satisfy dependency:
From: Eclipse Platform 3.7.2.v20120207-1839-9gF7UHPDFxGjd-PqDr2jX_4yKaumkoHTz04_q-q (org.eclipse.platform.feature.group 3.7.2.v20120207-1839-9gF7UHPDFxGjd-PqDr2jX_4yKaumkoHTz04_q-q)
To: org.eclipse.rcp.feature.group [3.7.2.v20120120-1424-9DB5FmnFq5JCf1UA38R-kz0S0272]
Cannot satisfy dependency:
From: Eclipse RCP 3.7.2.v20120120-1424-9DB5FmnFq5JCf1UA38R-kz0S0272 (org.eclipse.rcp.feature.group 3.7.2.v20120120-1424-9DB5FmnFq5JCf1UA38R-kz0S0272)
To: org.eclipse.core.runtime [3.7.0.v20110110]

improved URI preference pages

Currently you can only add/remove URI definitions for label/description URIs (due to a least effort implementation). Import/export/editing would be nice.

order of definition properties matters

the order of the description properties is important when you have more than one triple, e.g. you have an rdfs:comment and a skos:note. The skos:note is more relevant for the rich-hover than the rdf:comment, but if there is only a comment, the comment is ok as well. Nethertheless this is a nice-to-have feature, not extremely important.

add new icons

If you have suggestions for outline icons (prefix, base, subject), let me know.

error on loading an empty ttl file "ttt ttt.ttl" (latest dev)

Hi Alex, there is still some error with spaces in filenames ...

java.lang.IllegalArgumentException: Illegal character in path at index 52: file:///Users/seebi/Documents/workspace/dev-test/ttt ttt.ttl
at java.net.URI.create(URI.java:859)
at de.itemis.tooling.xturtle.resource.TurtleResourceIndex.resetMaps(TurtleResourceIndex.java:219)
at de.itemis.tooling.xturtle.resource.TurtleResourceIndex.initIndex(TurtleResourceIndex.java:73)
at de.itemis.tooling.xturtle.resource.DefaultTurtleResourceService.initialiseIndex(DefaultTurtleResourceService.java:66)
at de.itemis.tooling.xturtle.linking.TurtleLinker.beforeModelLinked(TurtleLinker.java:20)
at org.eclipse.xtext.linking.impl.AbstractCleaningLinker.linkModel(AbstractCleaningLinker.java:32)
at org.eclipse.xtext.resource.XtextResource.doLinking(XtextResource.java:279)
at org.eclipse.xtext.linking.lazy.LazyLinkingResource.doLinking(LazyLinkingResource.java:82)
at org.eclipse.xtext.resource.XtextResource.updateInternalState(XtextResource.java:247)
at org.eclipse.xtext.resource.XtextResource.updateInternalState(XtextResource.java:237)
at org.eclipse.xtext.resource.XtextResource.doLoad(XtextResource.java:160)
at org.eclipse.xtext.linking.lazy.LazyLinkingResource.doLoad(LazyLinkingResource.java:75)
at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1505)
at org.eclipse.xtext.ui.editor.model.XtextDocumentProvider.loadResource(XtextDocumentProvider.java:214)
at org.eclipse.xtext.ui.editor.model.XtextDocumentProvider.setDocumentContent(XtextDocumentProvider.java:191)
at org.eclipse.ui.editors.text.StorageDocumentProvider.createDocument(StorageDocumentProvider.java:229)
at org.eclipse.xtext.ui.editor.model.XtextDocumentProvider.createDocument(XtextDocumentProvider.java:131)
at org.eclipse.ui.editors.text.FileDocumentProvider.createElementInfo(FileDocumentProvider.java:735)
at org.eclipse.xtext.ui.editor.model.XtextDocumentProvider.createElementInfo(XtextDocumentProvider.java:239)
at org.eclipse.ui.texteditor.AbstractDocumentProvider.connect(AbstractDocumentProvider.java:400)
at org.eclipse.ui.texteditor.AbstractTextEditor.doSetInput(AbstractTextEditor.java:4222)
at org.eclipse.ui.texteditor.StatusTextEditor.doSetInput(StatusTextEditor.java:237)
at org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.doSetInput(AbstractDecoratedTextEditor.java:1480)
at org.eclipse.ui.editors.text.TextEditor.doSetInput(TextEditor.java:169)
at org.eclipse.xtext.ui.editor.XtextEditor.doSetInput(XtextEditor.java:219)
at org.eclipse.ui.texteditor.AbstractTextEditor$19.run(AbstractTextEditor.java:3209)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
at org.eclipse.ui.internal.WorkbenchWindow$13.run(WorkbenchWindow.java:1675)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow.java:1672)
at org.eclipse.ui.texteditor.AbstractTextEditor.internalInit(AbstractTextEditor.java:3227)
at org.eclipse.ui.texteditor.AbstractTextEditor.init(AbstractTextEditor.java:3254)
at org.eclipse.xtext.ui.editor.XtextEditor.init(XtextEditor.java:240)
at org.eclipse.ui.internal.EditorReference.initialize(EditorReference.java:324)
at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:288)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:859)
at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:839)
at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:111)
at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:319)
at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:240)
at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:161)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:102)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:53)
at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:141)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:896)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:630)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:732)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:703)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:697)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:682)
at org.eclipse.e4.ui.internal.workbench.PartServiceImpl$1.handleEvent(PartServiceImpl.java:91)
at org.eclipse.e4.ui.services.internal.events.UIEventHandler$1.run(UIEventHandler.java:41)
at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
at org.eclipse.swt.widgets.Display.syncExec(Display.java:4605)
at org.eclipse.e4.ui.internal.workbench.swt.E4Application$1.syncExec(E4Application.java:187)
at org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(UIEventHandler.java:38)
at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:197)
at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:197)
at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:1)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:135)
at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:78)
at org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:39)
at org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:81)
at org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:58)
at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:374)
at org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElement(ElementContainerImpl.java:171)
at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.showElementInWindow(ModelServiceImpl.java:418)
at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.bringToTop(ModelServiceImpl.java:385)
at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.delegateBringToTop(PartServiceImpl.java:579)
at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.bringToTop(PartServiceImpl.java:315)
at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.showPart(PartServiceImpl.java:985)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:3079)
at org.eclipse.ui.internal.WorkbenchPage.access$22(WorkbenchPage.java:3003)
at org.eclipse.ui.internal.WorkbenchPage$8.run(WorkbenchPage.java:2985)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2981)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2940)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2931)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:655)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:614)
at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:360)
at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:167)
at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:249)
at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:228)
at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:275)
at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:251)
at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup.handleOpen(PackageExplorerActionGroup.java:376)
at org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$4.open(PackageExplorerPart.java:538)
at org.eclipse.ui.OpenAndLinkWithEditorHelper$InternalListener.open(OpenAndLinkWithEditorHelper.java:48)
at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:866)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:864)
at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1152)
at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1256)
at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:275)
at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:269)
at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:309)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4134)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1458)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1481)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1466)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1271)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3980)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3619)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1029)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:923)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
Caused by: java.net.URISyntaxException: Illegal character in path at index 52: file:///Users/seebi/Documents/workspace/dev-test/ttt ttt.ttl
at java.net.URI$Parser.fail(URI.java:2829)
at java.net.URI$Parser.checkChars(URI.java:3002)
at java.net.URI$Parser.parseHierarchical(URI.java:3086)
at java.net.URI$Parser.parse(URI.java:3034)
at java.net.URI.(URI.java:595)
at java.net.URI.create(URI.java:857)
... 138 more

downgrade duplicate subject check

Currently duplicate subject definitions (same URI) within a file are marked as errors. However, they do not break any editor functionality. Hence, it should be possible to adjust the error level as for other validations.

Literal value validation

Depending on the xsd datatype which is chosen for a literal, a value is valid or not.
It would be great to have a validation of Literal values depending on this assertion.

"-10" # -> valid
"-10"^^xsd:string # -> valid
"-10"^^xsd:integer # -> valid
"-10"^^xsd:nonNegativeInteger # -> not valid

project id

We wanted to come up with a project id. Something like

de.itemis.aksw.tooling.turtle

?

URI resolution

Could you check border cases for the URI resolution, currently it is an untested best effort implementation. Here are a couple of examples:

what exactly does the base URI look like if there has been no

explicit definition

<> <> <>.

what if the relative path is somewhat unusual

@base http://www.example.org/Xturtle/.
<../../../strangePath> <> <>.

in one of your sample files a prefix URI did not end in # or /

what happens to the resulting URI in such cases

are they even legal?

@Prefix :http://www.example.org/Xturtle
:nowWhat <> <>.

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.