Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New features proposed in issues implemented in the ontology #136

Merged
merged 10 commits into from
Jul 11, 2024

Conversation

anaigmo
Copy link
Collaborator

@anaigmo anaigmo commented Jul 8, 2024

This PR includes new features in the ontology and related documentation, solving the following issues:

  • #120: Should DatatypeMap be defined as a TermMap?
  • #72 add rml:UnsafeIRI and rml:UnsafeURI to ontology, shapes and spec
  • #50 add rml:URI to ontology, shapes and spec
  • #30 add rml:baseIRI property to ontology, shapes and spec
  • #51 Move rml:Strategyand rml:strategy to RML-CC
  • #51 Inconsistency due to rdfs:domain of rml:logicalTarget and its use on rml:LanguageMap

Copy link
Collaborator

@pmaria pmaria left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @anaigmo. Some minor comments

@@ -193,7 +200,12 @@

### http://w3id.org/rml/logicalTarget
<http://w3id.org/rml/logicalTarget> rdf:type owl:ObjectProperty ;
rdfs:domain <http://w3id.org/rml/TermMap> ;
rdfs:domain [ rdf:type owl:Class ;
owl:unionOf ( <http://w3id.org/rml/DatatypeMap>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

<http://w3id.org/rml/DatatypeMap> can be removed

@@ -496,6 +496,27 @@
rdfs:label "Triples Map" .


### http://w3id.org/rml/URI
<http://w3id.org/rml/URI> rdf:type owl:Class ;
rdfs:comment "Denotes an URI, used with termType."@en ;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
rdfs:comment "Denotes an URI, used with termType."@en ;
rdfs:comment "Denotes a URI, used with termType."@en ;

rdfs:domain :TermMap ;
rdfs:domain [ rdf:type owl:Class ;
owl:unionOf ( :TermMap
:DatatypeMap
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:DatatypeMap can be removed


### http://w3id.org/rml/URI
:URI rdf:type owl:Class ;
rdfs:comment "Denotes an URI, used with termType."@en ;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
rdfs:comment "Denotes an URI, used with termType."@en ;
rdfs:comment "Denotes a URI, used with termType."@en ;

### http://w3id.org/rml/baseIRI
:baseIRI rdf:type owl:ObjectProperty ;
rdfs:domain :TriplesMap ;
rdfs:comment "Indicates the base IRI of the RDF graph to be created."@en ;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
rdfs:comment "Indicates the base IRI of the RDF graph to be created."@en ;
rdfs:comment "Indicates the base IRI of the RDF graph to be created with this triples map."@en ;

@anaigmo
Copy link
Collaborator Author

anaigmo commented Jul 10, 2024

Updated files according to @pmaria 's review in last commit

@dachafra
Copy link
Member

ok, let's wait until his final approval to merge it (@pmaria), thanks @anaigmo

Copy link
Collaborator

@pmaria pmaria left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one minor comment on the definition of baseIRI. Once that is fixed we can merge it

### http://w3id.org/rml/baseIRI
:baseIRI rdf:type owl:ObjectProperty ;
rdfs:domain :TriplesMap ;
rdfs:comment "Indicates the base IRI of the RDF graph to be created within a triples map."@en ;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Within is a bit odd, with is better since it indicates that this triples map is used to generate a graph with.

Suggested change
rdfs:comment "Indicates the base IRI of the RDF graph to be created within a triples map."@en ;
rdfs:comment "Indicates the base IRI of the RDF graph to be created with a triples map."@en ;

@anaigmo
Copy link
Collaborator Author

anaigmo commented Jul 11, 2024

Oki, now that definition is fixed :)

@pmaria pmaria merged commit 4fd1780 into kg-construct:main Jul 11, 2024
1 check passed
@chrdebru
Copy link
Contributor

chrdebru commented Aug 16, 2024

I looked at @anaigmo and @pmaria's work in the spec and shapes. I just want to confirm, unlike @dachafra's proposal of "pushing it further", rml:baseIRI's domain is triples maps, right?

Also, do we keep base IRIs as input in the configuration (overwritten by rml:baseIRI) when present, or do we assume that baseIRIs must be provided. The former is more flexible. The latter will require us to change all the test cases and examples in our specifications. Happy to work on rml:baseIRI test cases in the case of the former (testing failures, testing overwrites, ...).

@pmaria
Copy link
Collaborator

pmaria commented Aug 17, 2024

I looked at @anaigmo and @pmaria's work in the spec and shapes. I just want to confirm, unlike @dachafra's proposal of "pushing it further", rml:baseIRI's domain is triples maps, right?

Yest that is how I understood it, and how it is defined in the ontology now.

Also, do we keep base IRIs as input in the configuration (overwritten by rml:baseIRI) when present, or do we assume that baseIRIs must be provided. The former is more flexible. The latter will require us to change all the test cases and examples in our specifications. Happy to work on rml:baseIRI test cases in the case of the former (testing failures, testing overwrites, ...).

Yes, the former would be my preference as well. I think we should also explicitly define a default in the spec for if no baseIRI is provided via configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants