Skip to content

dealing with missing values #81

Answered by josd
giacomociti asked this question in Q&A
Discussion options

You must be logged in to vote

The following should work

@prefix log: <http://www.w3.org/2000/10/swap/log#>.
@prefix : <http://example.com/>.

{
    {
        ?object :Title ?title.
    } log:callWithOptional {
        ?title :Type ?type.
    }.
    ?type log:bound false.
} => {
    ?object :TitleWithoutType ?title.
}.

Remark that we are still discussing those log: built-ins in the N3 community group.

Related to this, there is currently a lot of work going on in https://github.com/doerthe/SPARQL-to-N3

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@giacomociti
Comment options

Answer selected by giacomociti
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants