Skip to content

Commit

Permalink
introduce iterable and describe natural mappings (#144)
Browse files Browse the repository at this point in the history
* define expression evaluation result

* clean up term map section

* introduce logical iterable

* describe natural rdf mappings

* Update spec/docs/datatypeConversion.md

Co-authored-by: elsdvlee <[email protected]>

* make multiplicity of reference formulation property 0 or 1

* iterable and abstract logical source

* sync ontology with spec

* rephrase definition of natural rdf literal

* rephrase definition of natural and canonical lexical forms

* update shapes

* force dfn link

---------

Co-authored-by: elsdvlee <[email protected]>
  • Loading branch information
pmaria and elsdvlee authored Jan 18, 2025
1 parent 61d115b commit 78a4866
Show file tree
Hide file tree
Showing 35 changed files with 2,358 additions and 551 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
.idea/
*__pycache__
.DS_Store
venv
144 changes: 92 additions & 52 deletions ontology/documentation/ontology.jsonld
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,6 @@
"@id" : "http://w3id.org/rml/SubjectMap"
} ]
} ]
}, {
"@id" : "_:genid10",
"@type" : [ "http://www.w3.org/2002/07/owl#Class" ],
"http://www.w3.org/2002/07/owl#unionOf" : [ {
"@list" : [ {
"@id" : "http://w3id.org/rml/BlankNode"
}, {
"@id" : "http://w3id.org/rml/IRI"
}, {
"@id" : "http://w3id.org/rml/Literal"
}, {
"@id" : "http://w3id.org/rml/URI"
}, {
"@id" : "http://w3id.org/rml/UnsafeIRI"
}, {
"@id" : "http://w3id.org/rml/UnsafeURI"
} ]
} ]
}, {
"@id" : "_:genid4",
"@type" : [ "http://www.w3.org/2002/07/owl#Class" ],
Expand All @@ -41,9 +23,17 @@
"@type" : [ "http://www.w3.org/2002/07/owl#Class" ],
"http://www.w3.org/2002/07/owl#unionOf" : [ {
"@list" : [ {
"@id" : "http://w3id.org/rml/LanguageMap"
"@id" : "http://w3id.org/rml/BlankNode"
}, {
"@id" : "http://w3id.org/rml/IRI"
}, {
"@id" : "http://w3id.org/rml/Literal"
}, {
"@id" : "http://w3id.org/rml/URI"
}, {
"@id" : "http://w3id.org/rml/TermMap"
"@id" : "http://w3id.org/rml/UnsafeIRI"
}, {
"@id" : "http://w3id.org/rml/UnsafeURI"
} ]
} ]
}, {
Expand Down Expand Up @@ -85,6 +75,22 @@
}, {
"@id" : "http://purl.org/vocab/vann/preferredNamespaceUri",
"@type" : [ "http://www.w3.org/2002/07/owl#AnnotationProperty" ]
}, {
"@id" : "http://w3id.org/rml/AbstractLogicalSource",
"@type" : [ "http://www.w3.org/2002/07/owl#Class" ],
"http://www.w3.org/2000/01/rdf-schema#comment" : [ {
"@language" : "en",
"@value" : "An iterable that can be associated with a triples map such that a data source can be mapped to RDF triples."
} ],
"http://www.w3.org/2000/01/rdf-schema#isDefinedBy" : [ {
"@id" : "http://w3id.org/rml/core/"
} ],
"http://www.w3.org/2000/01/rdf-schema#label" : [ {
"@value" : "Abstract Logical Source"
} ],
"http://www.w3.org/2000/01/rdf-schema#subClassOf" : [ {
"@id" : "http://w3id.org/rml/Iterable"
} ]
}, {
"@id" : "http://w3id.org/rml/BlankNode",
"@type" : [ "http://www.w3.org/2002/07/owl#Class" ],
Expand Down Expand Up @@ -172,6 +178,19 @@
"http://www.w3.org/2000/01/rdf-schema#label" : [ {
"@value" : "IRI"
} ]
}, {
"@id" : "http://w3id.org/rml/Iterable",
"@type" : [ "http://www.w3.org/2002/07/owl#Class" ],
"http://www.w3.org/2000/01/rdf-schema#comment" : [ {
"@language" : "en",
"@value" : "An abstract construct to describe data access and iteration for a data source."
} ],
"http://www.w3.org/2000/01/rdf-schema#isDefinedBy" : [ {
"@id" : "http://w3id.org/rml/core/"
} ],
"http://www.w3.org/2000/01/rdf-schema#label" : [ {
"@value" : "Iterable"
} ]
}, {
"@id" : "http://w3id.org/rml/Join",
"@type" : [ "http://www.w3.org/2002/07/owl#Class" ],
Expand Down Expand Up @@ -213,12 +232,6 @@
"http://www.w3.org/2000/01/rdf-schema#label" : [ {
"@value" : "Literal"
} ]
}, {
"@id" : "http://w3id.org/rml/LogicalSource",
"@type" : [ "http://www.w3.org/2002/07/owl#Class" ]
}, {
"@id" : "http://w3id.org/rml/LogicalTarget",
"@type" : [ "http://www.w3.org/2002/07/owl#Class" ]
}, {
"@id" : "http://w3id.org/rml/ObjectMap",
"@type" : [ "http://www.w3.org/2002/07/owl#Class" ],
Expand Down Expand Up @@ -293,6 +306,19 @@
"http://www.w3.org/2000/01/rdf-schema#label" : [ {
"@value" : "Reference Object Map"
} ]
}, {
"@id" : "http://w3id.org/rml/ReferenceFormulation",
"@type" : [ "http://www.w3.org/2002/07/owl#Class" ],
"http://www.w3.org/2000/01/rdf-schema#comment" : [ {
"@language" : "en",
"@value" : "Denotes a Reference Formulation."
} ],
"http://www.w3.org/2000/01/rdf-schema#isDefinedBy" : [ {
"@id" : "http://w3id.org/rml/core/"
} ],
"http://www.w3.org/2000/01/rdf-schema#label" : [ {
"@value" : "Reference Formulation"
} ]
}, {
"@id" : "http://w3id.org/rml/SubjectMap",
"@type" : [ "http://www.w3.org/2002/07/owl#Class" ],
Expand Down Expand Up @@ -594,6 +620,25 @@
"http://www.w3.org/2000/01/rdf-schema#range" : [ {
"@id" : "http://w3id.org/rml/GraphMap"
} ]
}, {
"@id" : "http://w3id.org/rml/iterator",
"@type" : [ "http://www.w3.org/2002/07/owl#DatatypeProperty" ],
"http://www.w3.org/2000/01/rdf-schema#comment" : [ {
"@language" : "en",
"@value" : "An expression qualified according to the reference formulation that defines a sequence of logical iterations on the data source."
} ],
"http://www.w3.org/2000/01/rdf-schema#domain" : [ {
"@id" : "http://w3id.org/rml/Iterable"
} ],
"http://www.w3.org/2000/01/rdf-schema#isDefinedBy" : [ {
"@id" : "http://w3id.org/rml/core/"
} ],
"http://www.w3.org/2000/01/rdf-schema#label" : [ {
"@value" : "iterator"
} ],
"http://www.w3.org/2000/01/rdf-schema#range" : [ {
"@id" : "http://www.w3.org/2001/XMLSchema#string"
} ]
}, {
"@id" : "http://w3id.org/rml/joinCondition",
"@type" : [ "http://www.w3.org/2002/07/owl#ObjectProperty" ],
Expand Down Expand Up @@ -665,25 +710,7 @@
"@value" : "logical source"
} ],
"http://www.w3.org/2000/01/rdf-schema#range" : [ {
"@id" : "http://w3id.org/rml/LogicalSource"
} ]
}, {
"@id" : "http://w3id.org/rml/logicalTarget",
"@type" : [ "http://www.w3.org/2002/07/owl#ObjectProperty" ],
"http://www.w3.org/2000/01/rdf-schema#comment" : [ {
"@value" : "Represents the logical target to where triples are exported to."
} ],
"http://www.w3.org/2000/01/rdf-schema#domain" : [ {
"@id" : "_:genid7"
} ],
"http://www.w3.org/2000/01/rdf-schema#isDefinedBy" : [ {
"@id" : "http://w3id.org/rml/core/"
} ],
"http://www.w3.org/2000/01/rdf-schema#label" : [ {
"@value" : "logical target"
} ],
"http://www.w3.org/2000/01/rdf-schema#range" : [ {
"@id" : "http://w3id.org/rml/LogicalTarget"
"@id" : "http://w3id.org/rml/AbstractLogicalSource"
} ]
}, {
"@id" : "http://w3id.org/rml/object",
Expand All @@ -700,9 +727,6 @@
} ],
"http://www.w3.org/2000/01/rdf-schema#label" : [ {
"@value" : "object"
} ],
"http://www.w3.org/2000/01/rdf-schema#range" : [ {
"@id" : "http://www.w3.org/2000/01/rdf-schema#Resource"
} ]
}, {
"@id" : "http://w3id.org/rml/objectMap",
Expand Down Expand Up @@ -849,6 +873,25 @@
"http://www.w3.org/2000/01/rdf-schema#range" : [ {
"@id" : "http://www.w3.org/2001/XMLSchema#string"
} ]
}, {
"@id" : "http://w3id.org/rml/referenceFormulation",
"@type" : [ "http://www.w3.org/2002/07/owl#ObjectProperty" ],
"http://www.w3.org/2000/01/rdf-schema#comment" : [ {
"@language" : "en",
"@value" : "The reference formulation used to refer to extracts of the source data. "
} ],
"http://www.w3.org/2000/01/rdf-schema#domain" : [ {
"@id" : "http://w3id.org/rml/Iterable"
} ],
"http://www.w3.org/2000/01/rdf-schema#isDefinedBy" : [ {
"@id" : "http://w3id.org/rml/core/"
} ],
"http://www.w3.org/2000/01/rdf-schema#label" : [ {
"@value" : "reference formulation"
} ],
"http://www.w3.org/2000/01/rdf-schema#range" : [ {
"@id" : "http://w3id.org/rml/ReferenceFormulation"
} ]
}, {
"@id" : "http://w3id.org/rml/subject",
"@type" : [ "http://www.w3.org/2002/07/owl#ObjectProperty" ],
Expand Down Expand Up @@ -920,17 +963,14 @@
"@value" : "term type"
} ],
"http://www.w3.org/2000/01/rdf-schema#range" : [ {
"@id" : "_:genid10"
"@id" : "_:genid7"
} ]
}, {
"@id" : "http://www.linkedmodel.org/schema/vaem#acronym",
"@type" : [ "http://www.w3.org/2002/07/owl#AnnotationProperty" ]
}, {
"@id" : "http://www.w3.org/2000/01/rdf-schema#Class",
"@type" : [ "http://www.w3.org/2002/07/owl#Class" ]
}, {
"@id" : "http://www.w3.org/2000/01/rdf-schema#Resource",
"@type" : [ "http://www.w3.org/2002/07/owl#Class" ]
}, {
"@id" : "http://xmlns.com/foaf/0.1/name",
"@type" : [ "http://www.w3.org/2002/07/owl#AnnotationProperty" ]
Expand Down
Loading

0 comments on commit 78a4866

Please sign in to comment.