I'm trying to create a simple ontology that has two classes: class1 and class2,- and two instances that have simple text data property with the same name (hasName: "string1"^^xsd:string and hasName "string2"^^xsd:string respectivly). I want to classify these instances with reasoner to the respective classes based on regular expression (for example, the restriction for class 1 would be hasName some xsd:string[pattern "string1"], and such, the reasoner should infer that instance1 belongs to class1, but instance2 is not). How can it be done?
Creating regex restriction on OWL class
400 Views Asked by Андрей Барышников At
1
There are 1 best solutions below
Related Questions in XSD
- Shorten the XSD
- Custom XML Validator Factory
- XSD.exe Generating Classes with type Object instead of XSD defined type
- How to generate parameterized constructor for Type/Class from XSD
- Validate xml if any one element exists in a sequence xsd
- XML Validation with XML-Reader in PHP
- exception unmarshalling xml file using jaxb
- Building XSD for secific xml
- Restriction on elements depending on attributes in XSD 1.1
- XSD unique element XPath limitations
- Convert date type to string in jaxb using bindings
- How to validate xsd schema if it includes ohter schemas?
- .NET XmlSerializer and multidimensional arrays
- Java - Spring Ws - Loading Relative Includes in XSD files (Tomcat 8)
- XML validation: why is explicitly specifying a namespace not allowed in this case?
Related Questions in OWL
- Reasoning and datatypes of Literals
- property chaine for a data property
- Loading owl file with Jena
- Loading an ontology from string using OWL API
- Resources on OWL and Building Ontologies
- UnloadableImportException when loading ontology file with OWLAPI
- sparql how to search on label's value without the language indicator
- How to load a owl file to neo4j using eclipse
- OWL. How to express that siblings has common parent?
- Check ontology consistency & satisifiability with OWL API 4
- How to get a single name for multiple name properties in DBPedia with SPARQL?
- OWL reasoning: Necessary and sufficient conditions for inferring a property
- How to reason or make inferences using hermit reasoner in command line
- What does partial mean in owl
- Understanding Extential and Universal restriction use case (Pizza ontology use case)
Related Questions in PELLET
- OutOfMemory in Protege when classifying ontology with Pellet
- com.hp.hpl.jena.reasoner.rulesys.FBRuleInfGraph cannot be cast to org.mindswap.pellet.jena.PelletInfGraph
- How to use SWRL rules on Protegé 4.3 using Pellet
- SPARQL DELETE: not possible in jena/pellet?
- OWL reasoners in owlready2 : how to reduce computation time
- Inconsistencies in OWL classes
- Jena + Pellet + Slick in an applet
- Why is HermiT or Pellet Reasoner for Protegev5.5 is not detecting inconsistency in Ontology
- Why is Protege not able to infer all implicit axioms in one operation?
- What flavors of reasoning are supported in VOS?
- How can I connect pellet with C#? (Loading ontology in C#.)
- Does the order of the triples in a sparql query affect the result?
- Trouble while loading an ontology with Pellet API
- Pellet-2.3 packages missing?
- How to get an individual which match an Objectproperty with Jena?
Related Questions in HERMIT
- OWL reasoners in owlready2 : how to reduce computation time
- How to perform existential quantification inferences in ontologies?
- Why is HermiT or Pellet Reasoner for Protegev5.5 is not detecting inconsistency in Ontology
- Why is Protege not able to infer all implicit axioms in one operation?
- Using Hermit with ONT-API and SPARQL Query
- Reasoning over OWL cardinality restriction
- What flavors of reasoning are supported in VOS?
- Aren't anonymous classes automatically a type of owl:Class?
- owlready2 reasoner does not generate inferred object property assertions with a SWRL rule
- Reset sync_reasoner inferences
- Could OWL reasoner inherit ranges of data properties from parent properties?
- Create reasoner does not work on Tomcat deployment
- How to model Logical Expression using Protege OWL
- NoSuchMethodError OWLDisjointClassesAxioms.getOperandAsList ()
- Equivalent class for transitive property
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Using Openllet(2.6.2-SNAPSHOT) you can do things like that :
As you can see the line :
is the one that add the "regexp" to the classification algorithm.
Here the pattern is 'A.A', pattern follow 'java-regexp'enter link description here rules.