janpolowinski / rvl

RVL language
Other
2 stars 3 forks source link

bootstrap rvl mappings #132

Open janpolowinski opened 8 years ago

janpolowinski commented 8 years ago

works in general, but requires better support of blank nodes, since submapping-relation instances are often blanks

janpolowinski commented 8 years ago
@prefix :        <http://purl.org/viso/example/ro/> .
@prefix common-shapes:  <http://purl.org/viso/shape/commons/> .
@prefix commons:  <http://purl.org/viso/shape/commons/> .
@prefix owl:     <http://www.w3.org/2002/07/owl#> .
@prefix rdf:     <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs:    <http://www.w3.org/2000/01/rdf-schema#> .
@prefix ro:      <http://purl.org/ro/ont#> .
@prefix rvl:     <http://purl.org/rvl/> .
@prefix semvis-example:  <http://purl.org/ro/semvis-example/> .
@prefix sp:      <http://spinrdf.org/sp#> .
@prefix spin-constraints:  <http://purl.org/rvl/spin-constraints/> .
@prefix vg:      <http://purl.org/viso/graphic/> .
@prefix viso-graphic:  <http://purl.org/viso/graphic/> .
@prefix xsd:     <http://www.w3.org/2001/XMLSchema#> .

rvl:valueMapping
      rdfs:domain rvl:PropertyMapping .

:     rdf:type owl:Ontology ;
      owl:imports <http://purl.org/ro/ont> , semvis-example: , rvl: , <http://purl.org/rvl/fact-based-spin-constraints/> , spin-constraints: , common-shapes: .

:SubmappingToLinking
      rdf:type rvl:PropertyToGraphicObjToObjRelationMapping ;
      rvl:disabled "false"^^xsd:boolean ;
      rvl:sourceProperty rvl:subMapping ;
      rvl:targetObjToObjRelation
              viso-graphic:Linking_Directed_Relation .

:SubmappingToLinking2
      rdf:type rvl:PropertyToGraphicObjToObjRelationMapping ;
      rvl:disabled "false"^^xsd:boolean ;
      rvl:sourceProperty rvl:subMapping-mapping ;
      rvl:targetObjToObjRelation
              viso-graphic:Linking_Directed_Relation .