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

Ontop Protégé blank nodes syntax #303

Closed
JBPressac opened this issue Sep 9, 2019 · 1 comment
Closed

Ontop Protégé blank nodes syntax #303

JBPressac opened this issue Sep 9, 2019 · 1 comment

Comments

@JBPressac
Copy link

Hello,
What is the syntax for blank nodes in Protégé Maping Manager ? I would like to use the BIO ontology to declare the date of birth of someone and tried the following:

:person{id} a :Person ; foaf:name {nom_usuel_forme_orthographique_1}^^xsd:string; bio:birth :_birth. 
_:birth a bio:Birth; bio:date {annee_naissance}.

But I have an error: No match found.

2019-09-09 14_27_19-Window

I also tried the following without success:

:person{id} a :Person ; foaf:name {nom_usuel_forme_orthographique_1}^^xsd:string; bio:birth [a bio:Birth; bio:date {annee_naissance}].

2019-09-09 14_31_41-Window

Thanks,

@ghxiao
Copy link
Member

ghxiao commented Sep 9, 2019

Hi,

Blank node works similarly as for IRIs, the difference is that you need to use _: as prefix. You can construct a BNODE with syntax :{column1}{column2}.

Note that you have to supply a label to BNode, unlabelled BNode [] is not supported by Ontop.

You also need to be careful about the semantics of BNode. It works very similarly to IRI, so you do want your columns to identify the BNode with a RDF Graph. The difference with IRI is that such identifiers are internal to the Graph. When you query the graph, the identifiers are not preserved.

In your example, as far as I understood, id is enough for identify a birth. So you can write a mapping like:

:person{id} a :Person ; bio:birth _:birth_{id} . 
_:birth_{id} a bio:Birth; bio:date {annee_naissance}.

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

No branches or pull requests

2 participants