I have a class question in an ontology the question has DatatypeProperty how can i insert a new individual to the ontology with its DatatypeProperty

Thanks

asked 20 Nov '12, 20:35

Ibrahim%20Koubeissy's gravatar image

Ibrahim Koub...
313
accept rate: 0%

1

Please explain more cleary what you are trying to do including which technology etc...

(21 Nov '12, 03:22) Jerven ♦ Jerven's gravatar image

Ibrahim, welcome to answers.semanticweb.com! Please take a look at this message to learn how to best take advantage of this website: http://answers.semanticweb.com/questions/14494/welcome-to-answerssemanticwebcom

(21 Nov '12, 07:15) Antoine Zimm... ♦ Antoine%20Zimmermann's gravatar image

While the question is a bit underspecified, a general answer could prove helpful. Support you are creating a member (individual) of the class mns:ClassA and a datatypeProperty of dcterms:created. YOu can use the following to define the instance with a timestamp:

INSERT
{  GRAPH <the graph name>
   {  ?inst a mns:ClassA .
      ?inst dcterms:created ?now .
   }
 }
 WHERE
 {  BIND(now() AS ?now)
    BIND(IRI("http://example.org/someNameSpace/") AS ?inst)
 }

If you are working with the default graph, you can remove the Graph clause.

permanent link

answered 21 Nov '12, 13:38

scotthenninger's gravatar image

scotthenninger ♦
7.5k813
accept rate: 17%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×1,286
×604
×195

question asked: 20 Nov '12, 20:35

question was seen: 892 times

last updated: 21 Nov '12, 13:38