rdfs

RDF Schema generation from RDF data instance

最后都变了- 提交于 2019-12-11 15:43:56
问题 Is anyone aware of some work being done on generating RDF schema for a given RDF data instance ? It would be some thing like coming up with information like classes, their attributes, their associations(hierarchical or peer) with other classes and if possible data types of attributes. It all resembles RDF Schema. My other question is how different is this approach (RDF schema generation from a given RDF data instance) from finding patterns in RDF data ? Is it the same thing put up in a

Conflicts with using xsd:integer as rdfs:range

回眸只為那壹抹淺笑 提交于 2019-12-11 14:37:32
问题 I am defining a property with integer range as :hasIndex rdf:type owl:DatatypeProperty ; rdfs:range xsd:integer . My understanding is that it should only accept integers as object, anything else should be considered as inconsistent and throw errors. However, when I create instances with strings as objects in GraphDb as the following, both entries are successfully loaded into the database (as "asd"^^xsd:string) without any errors: :nodea :hasIndex "asd" . :nodeb :hasIndex "asd"^^xsd:string .

Jena Model converts my RDF type explicit declaration to implicit and messes with the format

倾然丶 夕夏残阳落幕 提交于 2019-12-11 10:55:50
问题 I have the following code that creates an RDF resource with some set properties and prints it on console. String uri = "http://krweb/"; String name = "Giorgos Georgiou"; String phone = "6976067554"; String age = "27"; String department = "ceid"; String teaches = "java"; Model model = ModelFactory.createOntologyModel(); model.setNsPrefix("krweb", uri); Resource giorgosgeorgiou = model.createResource(uri+name.toLowerCase().replace(" ", ""), model.createResource(uri+"Professor")); Property has

why inference is not working well

荒凉一梦 提交于 2019-12-11 10:46:21
问题 I have two ontologies which i join them together in one big ontology This is in the big ontology <!-- http://www.MusicSemanticOntology/mso#r1 --> <owl:NamedIndividual rdf:about="http://www.MusicSemanticOntology/mso#r1"> <rdf:type rdf:resource="http://semanticrecommender.com/rs#Rates"/> <rs:about rdf:resource="http://music.org/musicontology/mo#5th_Symphony"/> <rs:createdOn rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">1956-06-25T04:00:00-05:00</rs:createdOn> <rs:ratesBy rdf:datatype

How to distinguish between two Blank Nodes in RDF?

梦想与她 提交于 2019-12-11 07:12:57
问题 I am having difficulty understanding a passage from w3.org. The confusing passage may be an error, or I may just be confused. The following is Section 6.6 of the RDF Concepts Specification, 6.6 Blank Nodes The blank nodes in an RDF graph are drawn from an infinite set. This set of blank nodes, the set of all RDF URI references and the set of all literals are pairwise disjoint. Otherwise, this set of blank nodes is arbitrary. RDF makes no reference to any internal structure of blank nodes.

How to define a class Road to be equivalent to a set of objects with the same value of hasRoadNumber data property

与世无争的帅哥 提交于 2019-12-11 04:26:09
问题 I defined class RoadSegment and datatype property hasRoadNumber . So, now I want to define class Road and state that a Road is a set of RoadSegments with the same road number. How it can be done? 来源: https://stackoverflow.com/questions/57937212/how-to-define-a-class-road-to-be-equivalent-to-a-set-of-objects-with-the-same-va

Object property instance on class?

▼魔方 西西 提交于 2019-12-11 04:02:13
问题 Let's say for example: -Food(class -Bread(instance of Food! -Species(class -Animal(class - Horse(class -Unicorn(instance Now I need to be able to set Bread -> eatableBy -> Horse. But I can't make a object property assertion to a class. So I could set it eatable by and add all the instances of Horse, but I have a lot of instances so that would be a bit redundant. Does anybody know a good efficient way to do achieve the same effect? E.g. If I need to know what Horses can eat it needs to return

RDF - Distributing rdf:type to all items in the list

自作多情 提交于 2019-12-11 02:46:32
问题 Consider the following RDF: semapi:BaseClass a rdfs:Class; rdfs:subClassOf rdfs:Class . semapi:hasChainTo a rdf:Property; rdfs:domain semapi:BaseClass; rdfs:range semapi:BaseClass . semapi:DerivedClass a rdfs:Class; rdfs:subClassOf semapi:BaseClass . instances:Instance1 a semapi:DerivedClass; semapi:hasChainTo ( [ a semapi:DerivedClass; semapi:hasChainTo ( [C1] [C2] ) ] ) If semapi:hasChainTo rdfs:range semapi:BaseClass then it implies the list is rdf:type semapi:BaseClass . What I really

GraphDB's Visual graph does not display all triples

自闭症网瘾萝莉.ら 提交于 2019-12-10 18:35:53
问题 In my graph I have the following assertions @prefix : <http://www.example.org/~joe/contact.rdf#> . @prefix foaf: <http://xmlns.com/foaf/0.1/> . @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . :joesmith a foaf:Person ; foaf:givenname "Joe" ; foaf:family_name "Smith" ; foaf:homepage <http://www.example.org/~joe/> ; foaf:mbox <mailto:joe.smith@example.org> . I loaded the graph in GraphDB. If I point the GraphDB's Visual Graph to :joesmith , I would like to see all the triples but I

restrict xsd:string to [A-Z] for rdfs:range

穿精又带淫゛_ 提交于 2019-12-09 16:48:47
问题 How can I specify the range of a datatype property to be xsd:strings whose literal forms match [A-Z]? OWL restrictions don't do the trick for me, at least at first glance. Is there a way to do this with regular expressions and if so, where? 回答1: I suppose you mean "single capital letter" which is string[pattern "[A-Z]"] . If you are using Protege, enter this into the "Data range expression" tab. HermiT 1.3.7 can check this and provide explanations about inconsistent property values. 回答2: