Skip to content

how to insert rdf data #8

@fahadmhd

Description

@fahadmhd

I have using your code for inserting classes in graphdb via nodejs. It enapso-graphdb-client worked fine, thanks
I want to insert data now in classes, for example an individual with name and age datatype properties.
Can you please show ?
//insert a triple
graphDBEndpoint
.update(
insert data { graph <${GRAPHDB_CONTEXT_TEST}> { entest:Individual1 rdf:type owl:NamedIndividual} }
)
.then((result) => {
console.log("inserted a individual :\n" + JSON.stringify(result, null, 2));
})
.catch((err) => {
console.log(err);
});
this code will not work

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions