ontology

SPARQL Get all the properties from a Class or an Individual

徘徊边缘 提交于 2019-12-06 11:45:29
问题 What I want to do is to get the property list from the Individual1 or from a class, Get all properties from "something" The result should be something like this (for Secret_Data): | Asset_has_Confidentiality_Importance | High | | Asset_has_Availability_Importance....| Moderate | | Asset_has_Integrity_Importance.......| Moderate | | Asset_threatenedBy_ThreatEvent.......| Compromise_sensitive_information | | Asset_threatenedBy_ThreatEvent.......| Disclosure_of_sensitive_information | | Asset

ontology with java(jena)

…衆ロ難τιáo~ 提交于 2019-12-06 09:51:14
I'm doing some project which is based on ontology.I want to identify semantic of the text that has entered by user. Is there any possible way to fulfill my task dealing with ontology through jena? Jena doesn't do Natural Language Processing. You want to look at APIs like Zemanta or OpenCalais , or tools like GATE . kurzum You might be looking for something like this: http://nlp2rdf.org The other answers are still correct: Jena is not NLP. But with NLP2RDF you can query NLP tool output with Jena . 来源: https://stackoverflow.com/questions/2919095/ontology-with-javajena

Difference between rdf:seeAlso and rdfs:seeAlso

不羁岁月 提交于 2019-12-06 09:27:59
What is the difference between rdf:seeAlso and rdfs:seeAlso ? When I can use rdf:seeAlso and when I can use rdfs:seeAlso ? Can you do any examples? First, note that rdf and rdfs are prefixes commonly used to reference the RDF syntax and RDF schema vocabularies respectively. The rdf is typically used for http://www.w3.org/1999/02/22-rdf-syntax-ns# , so that rdf:seeAlso would expand to http://www.w3.org/1999/02/22-rdf-syntax-ns#seeAlso . However, if you follow the vocabulary reference, you won't find a term defined for seeAlso . The RDF syntax is used for basic types such as rdf:type, rdf

How do I include pronouns and other types of words in Wordnet?

吃可爱长大的小学妹 提交于 2019-12-06 09:15:33
问题 I am using Princeton's WordNet for an application, but there is no support for pronouns, conjunctions, and several other types of words within the database. Does anybody know if there is a way to supplement the Wordnet database with these types of words? Thanks, Ted 回答1: First, they're missing since WordNet only contains the open-class words as described in their page: Q. Why is WordNet missing: of, an, the, and, about, above, because, etc. A. WordNet only contains "open-class words": nouns,

OWL how to force all the instances of a specific class to have a specific relationship

不问归期 提交于 2019-12-06 08:55:26
I am building an Ontology. I have a Class called Vehicle I have an Object Property called hasType I have a Class called VehicleTypes How can I force all the instances from Vehicle class to have one and just one instance of VehicleTypes What I have tried I am working on Protege. I made the hasType as a functional property. I added an Equivalent To which is like this: hasType exactly 1 VehicleTypes Is that enough please? Making hasType functional is the right move since every Vehicle can only have one VehicleType . However, you need to describe Vehicle hasType exactly 1 VehicleType as a

drools programmatically generate a fact model

痴心易碎 提交于 2019-12-06 07:49:39
I need to generate an enormous fact model using an ontology external to drools. Now, I could certainly write a script/program to pull this off. My approach would be to generate a java bean for each ontology class which contains the appropriate fields, methods, and references to other java objects based on ontological relationships (probably in a map). My question is whether drools has a more elegant way to approach this problem. I figure it must be a common problem that the fact model is derivable from resource available outside of drools, so I'm wondering if maybe drools(or guvnor) has a

RDF Schema - how to create instances?

六月ゝ 毕业季﹏ 提交于 2019-12-06 06:29:04
I want to have instances of classes in my RDFS file, but I don't know how to do it. My class: <rdfs:Class rdf:ID="Turns"> <rdfs:range rdf:resource="Literal"/> </rdfs:Class> My property: <rdf:Property rdf:ID="has_Turns"> <rdfs:domain rdf:resource="#Device"/> <rdfs:range rdf:resource="#Turns_Frequency"/> </rdf:Property> I want to get an instance of class "Turns" with a "has_Turns" property. I tried something like this: <Turns_Instance rdf:ID="Turns">…</Turns_Instance> … but it takes that the main class is "Turns_Instance", the other way round it doesn't work. What's more I don't know where to

Jena PrefixMapping: base namespace missing when model is a named model obtained from a dataset

匆匆过客 提交于 2019-12-06 05:07:23
This the code I am using to load OntModel to a Dataset as a Named Model. Then I try to retrieve the PrefixMapping for the same in two different ways: public static void loadDatasetwithNamedModels(){ OntModel namedModel = null; Dataset dataset = null; dataset = TDBFactory.createDataset("./path/to/TDB_DIR"); namedModel = ModelFactory.createOntologyModel(OntModelSpec.OWL_MEM); dataset.begin(ReadWrite.WRITE); try{ namedModel = ModelFactory.createOntologyModel(OntModelSpec.OWL_MEM); FileManager.get().readModel( namedModel, "./Path/to/OWLFile.owl"); dataset.addNamedModel("MyNamedModel", namedModel);

OutOfMemoryError using Pellet as Reasoner

拟墨画扇 提交于 2019-12-05 22:13:20
I'm trying to infer data using Pellet, but my application always crashes during reasoning due to an "OutOfMemoryError: Java heap space". As suggested elsewhere I have already tried to increase heap size and currently I am using these VM arguments: "-XX:MaxPermSize=256m -Xmx6144m". Furthermore I've to set 'PelletOptions.USE_CONTINUOUS = true', but so far I was only able delays the crashs for some minutes. (Longest run so far: 30 min.). I am storing data in a Jena TDB triplestore. Its total size is 170 mb and consists of 962117 statements. The ontology has been modelled in Protege and there are

Serializing JENA OntModel Changes

扶醉桌前 提交于 2019-12-05 09:49:10
问题 I need to keep a couple of Jena Models (OntModels, specifically) synchronized across a socket, and I'd like to do this one change at a time (for various reasons -- one being that each Statement added or removed from the OntModels is also adapting a JESS rule base.). I am able to listen to the add/remove events on the OntModels and then create simple event instances that wrap the added / removed Statements along with a ChangeType that indicates that the Statement was added or removed, but