如何在Eclipse中更改Editor的颜色(How to change color of Editor in Eclipse)
我知道偏好设置在首选项>常规>外观下,我使用TextEditor的颜色主题和颜色,我最终在默认的白色背景上看到了一些丑陋的配色方案(参见附件)。 我试图重置为默认值,但似乎没有任何东西让我回到原来的默认外观。 附上的是我坚持的难看的颜色。
I know the preferences are under Preferences>General>Appearance, I played with the color themes and colors of TextEditor, I ended up with some ugly color scheme on top of the default white background (See attached). I tried to reset back to defaults, but nothing seems to get me back to the original default look. Attached is the ugly colors I am stuck with.
原文:https://stackoverflow.com/questions/26044510
最满意答案
为了使局部变量从多个方法公开和可见,您只需将其声明为公共成员变量。 只需将访问修饰符更改为public即可实现此目的。
据我所知,DL不是推理器实现。
HermiT实现了DL推理器,它还支持SWRL规则。 它可以通过Protege插件使用,也可以通过代码使用它作为
OWLReasoner
。例:
OWLOntology o = ... OWLReasoner hermit= new Reasoner.ReasonerFactory().createBufferedReasoner(o); The `hermit` object is ready to be queried now.
In order to make a local variable public and visible from multiple methods, you just declare it as a public member variable. This is achieved simply changing the access modifier to public.
DL is not a reasoner implementation, as far as I know.
HermiT implements a DL reasoner and it also supports SWRL rules. It can be used through a Protege plugin, or through code by using it as an
OWLReasoner
.Example:
OWLOntology o = ... OWLReasoner hermit= new Reasoner.ReasonerFactory().createBufferedReasoner(o); The `hermit` object is ready to be queried now.
相关问答
更多-
以下代码片段说明了使用OWL API(从那里采用和改编)使用和创建OWL表达式的示例: //OWL Expression we would like to create: //in OWL Functional syntax: ObjectIntersectionOf(A ObjectSomeValuesFrom(R B)) //in Manchester syntax: A and R some B PrefixManager pm = new DefaultPrefixManager("http://e ...
-
保存本体时,可以传递OWLDocumentFormat实例。 它有一个setAddMissingTypes(boolean)方法,允许您禁用添加缺少的声明。 但是,只有在import闭包中没有找到声明时才应添加遗漏声明,从您的描述中看,似乎并非如此。 如果你有一个本体论的例子,我会很高兴检查它是否是一个错误。 When saving an ontology, you can pass an OWLDocumentFormat instance. It has a setAddMissingTypes(boo ...
-
OWLOntology::getIndividualsInSignature(boolean includeImportsClosure)返回包括导入闭包在内的所有个体,请参阅Javadocs OWLOntology::getIndividualsInSignature(boolean includeImportsClosure) returns all individuals including the imports closure, see the Javadocs
-
只是为了告诉任何有类似问题的人(或任何想要使用Jena阅读门徒本体的人),下面是我用来实现它的过程和代码: 1 - 在Protégé中,将文件保存为RDF / XML; 2 - 将文件复制到WEB-INF目录(如果需要,可以在任何子目录下); 3 - 创建一个类来读取本体。 例如: import java.io.InputStream; import org.apache.jena.ontology.*; import org.apache.jena.rdf.model.ModelFactory; ...
-
如何使用OWL API设置匿名本体的本体ID(How to set the Ontology ID of an anonymous Ontology using the OWL API)[2022-04-29]
OWLOntologyManager.setOntologyDocumentIRI()用于设置本体的文档IRI,而不是本体IRI本身。 两者之间的区别在于文档IRI是可解析的URL或文件路径(即,int可用于解析本体),而本体IRI是本体的符号名称(它不需要是可解析的)它甚至可以丢失 - 这就是匿名本体的情况。 要设置本体IRI,请使用: //versionIRI can be null OWLOntologyID newOntologyID = new OWLOntologyID(ontologyIRI, ... -
两个问题:默认前缀中不应有空格,而设置前缀的前缀管理器必须与saveOntology()调用中使用的相同。 您可以将第一个功能文档格式传递给代码中的最后一个方法。 编辑:尝试运行代码后,我认为OWL API中存在一些错误。 有必要在管理器上设置格式,以便正确选取前缀。 这不应该是必要的。 但是,有一个解决方法。 OWLOntologyManager manager = OWLManager.createOWLOntologyManager(); OWLOntology ontology = ...
-
你的代码是正确的。 正如评论中所描述的那样(实际上可能是答案),你假设cat owner不能把cat liker作为超类,但我不相信你所展示的数据证明了这一点。 我的层次级别是基本的图形顺序,从上到下解析概念而不考虑语义关系和推理。 如果您想在不进行推理的情况下导航类,则不应为此目的使用推理器。 您可以通过检查本体中的子类公理来导航断言的层次结构。 Your code is correct. As described in the comments (which could be answers, real ...
-
你离解决方案很近: final OWLOntologyManager manager = OWLManager.createOWLOntologyManager(); final OWLOntology ontology = manager.loadOntologyFromOntologyDocument(new File("/home/galigator/myLocalDir/aura.owl")); 只需使用新文件而不是IRI.create You are very near from the sol ...
-
为了使局部变量从多个方法公开和可见,您只需将其声明为公共成员变量。 只需将访问修饰符更改为public即可实现此目的。 据我所知,DL不是推理器实现。 HermiT实现了DL推理器,它还支持SWRL规则。 它可以通过Protege插件使用,也可以通过代码使用它作为OWLReasoner 。 例: OWLOntology o = ... OWLReasoner hermit= new Reasoner.ReasonerFactory().createBufferedReasoner(o); The `her ...
-
最后我使用了jOWL库: jOWL In the end I used jOWL library: jOWL