owl

XML手册

心不动则不痛 提交于 2020-01-07 01:45:22
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> XML手册 概述 XML(Extensible Markup Language) 指可扩展标记语言 XML 被设计用来传输和存储数据。 什么是XML XML 指可扩展标记语言( EX tensible M arkup L anguage) XML 是一种 标记语言 ,很类似 HTML XML 的设计宗旨是 传输数据 ,而非显示数据 XML 标签没有被预定义。您需要 自行定义标签 。 XML 被设计为具有 自我描述性 。 XML 是 W3C 的推荐标准 XML 与 HTML 的主要差异 XML 不是 HTML 的替代。 XML 和 HTML 为不同的目的而设计: XML 被设计为传输和存储数据,其焦点是数据的内容。 HTML 被设计用来显示数据,其焦点是数据的外观。 HTML 旨在显示信息,而 XML 旨在传输信息。 XML 的用途 XML 把数据从 HTML 分离 如果你需要在 HTML 文档中显示动态数据,那么每当数据改变时将花费大量的时间来编辑 HTML。 通过 XML,数据能够存储在独立的 XML 文件中。这样你就可以专注于使用 HTML 进行布局和显示,并确保修改底层数据不再需要对 HTML 进行任何的改变。 通过使用几行 JavaScript,你就可以读取一个外部 XML 文件,然后更新 HTML

How to create a SPARQL endpoint using Virtuoso?

风流意气都作罢 提交于 2020-01-07 00:34:46
问题 I have just setup Virtuoso and I have loaded an OWL file (created with Protege software) present on my local machine in to Virtuoso using the following code: SQL> DB.DBA.RDF_LOAD_RDFXML_MT (file_to_string_output ('antibiotics.owl'), '', 'http://myexample.com'); Now, my question is how do I access the URI myexample.com ? How do I create a SPARQL endpoint in Virtuoso so that I can query it? 回答1: No need to create a sparql endpoint, since it's already there. Check the inserted RDF data on your

coalesce not working in this example

≡放荡痞女 提交于 2020-01-06 18:38:36
问题 This is my minimum data: PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> PREFIX rs: <http://www.SemanticRecommender.com/rs#> PREFIX mo: <http://www.musicontology.com/mo#> PREFIX : <http://www.musicsemanticontology.com/mso#> mo:5th_symphony_for_beethoven a mo:GermanSymphony . :symphonyFestival2016 a rs:TemporalContext ; rs:appliedOnItems mo:GermanSymphony ; rs:canBeRecommendedFrom "2016-07-01T00:00:00-00:00"^^xsd:dateTime ; rs

Inference in protége

大憨熊 提交于 2020-01-06 17:58:36
问题 I'm building an ontology to find peoples' skills. I want to infer that when a person A passed a course B and course B provides skill C, then person A has skill C. Is there a way to do this in Protégé? 回答1: Sure, you're saying that when you have: A &rightarrow; passed B &rightarrow; providesSkill C you want to infer that A &rightarrow; hasSkill C You can do that with the subproperty chain axiom: passed &bullet; providesSkill &sqsubseteq; hasSkill For a more detailed example of how to add these

jena api get range of ObjectProperty

我的梦境 提交于 2020-01-06 15:24:06
问题 I've and OWL file and I can explore it and navigate through classes and properties but I can't retrieve correct range of ObjectProperty. This is part of my OWL file: <owl:ObjectProperty rdf:about="&aat;aat2209_located_in"> <rdfs:label xml:lang="en">located in</rdfs:label> <rdfs:label xml:lang="it">si trova in</rdfs:label> <rdfs:comment xml:lang="en">The property defines a relationship between places or places and things</rdfs:comment> <rdfs:comment xml:lang="it">La proprietà definisce la

owl closing the world with OneOf

我们两清 提交于 2020-01-06 07:28:11
问题 In the following Ontology I'm trying to make Boy the complement of Girl by using OneOf however using Fact++ or Hermit I'm unable to get any instances by querying for Boy (Protege 5.2 DL query), any suggestions? :Bob rdf:type owl:NamedIndividual , :Person . :Mike rdf:type owl:NamedIndividual , owl:Thing . :Sarah rdf:type owl:NamedIndividual , :Girl. :Person rdf:type owl:Class ; owl:equivalentClass [ rdf:type owl:Class ; owl:oneOf ( :Bob :Mike :Sarah ) ] . :Girl rdf:type owl:Class ; owl

Trouble Inferring Properties for Classes/Individuals in Protege 5/OWL

佐手、 提交于 2020-01-06 03:45:10
问题 I want to be able to infer which ingredients go well together given...their properties and which properties complement each other. I have an ontology like, owl:Thing Ingredient Kale Pear Taste Bitter Sweet owl:topObjectProperty hasTaste tasteComplements goesWellWith Individuals: (*would rather work with just classes) kale a Kale pear a Pear bitter a Bitter sweet a Sweet I've asserted, Kale subClassOf hasTaste some Bitter Pear subClassOf hasTaste some Sweet Bitter subClassOf tasteComplements

How to specify that a chain of relationships implies another

倖福魔咒の 提交于 2020-01-04 05:54:12
问题 Suppose I'm defining an OWL ontology for family relationships, and I've already defined the relationships "sister-of" and "parent-of". I'd now like to define a relationship "aunt-of" and specify that this relationship is implied by a chain of the other two. In other words: if X "sister-of" Y, and Y "parent-of" Z, then X "aunt-of" Z. Is there a way to do this? It's similar to owl:TransitiveProperty but that obviously doesn't work. It's also in the same general vein as "owl:inverseOf" in terms

Jena Ontology API how to retrieve axiom that attach annotation to a class property relation

不想你离开。 提交于 2020-01-03 05:23:10
问题 I have annotated the relationship described below TV subClassof : Restriction {hasFeature some PowerConsumption} ::: @isNegative=true. The TV class has a Object property called hasFeature with values in class PowerConsumption . The annotation is applied to this property relation. The OWL file gets added with the following axiom to represent the added annotation. How can I retrieve this axiom and get the annotation value of isNegative using Jena? <owl:Axiom> <isNegative>true</isNegative> <owl

For an OWL class A; Getting all properties that A is their domain

≯℡__Kan透↙ 提交于 2020-01-03 05:12:05
问题 First I know this topic maybe repeated, but actually I have further questions. I'm using Jena to manipulate OWL ontology. Given a class A , I want to find all properties that A is their domain whether this is explicit or inferred. Let's consider the following ontology: A1 subClassOf A; P domain A; P range B; I create an ontology moel with DL rule inference, this is supposed to turn reasoner on. ModelFactory.createOntologyModel(OntModelSpec.OWL_DL_MEM_RULE_INF) A work around introduced two