Skip to content

Commit a4ad1a2

Browse files
committed
add rdf:Property as type on object and datatype properties
We already do this on the instance types, why not here as well?
1 parent e811907 commit a4ad1a2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/src/main/scala/org/dbpedia/extraction/ontology/io/OntologyOWLWriter.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@ class OntologyOWLWriter(writeSpecificProperties : Boolean = true)
9191
{
9292
val xml = new scala.xml.NodeBuffer()
9393

94-
//Type
94+
//Type (add rdf:Property as well, we already do it for the class instances)
95+
xml += <rdf:type rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#Property" />
9596
if (property.isFunctional)
9697
{
9798
xml += <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#FunctionalProperty" />

0 commit comments

Comments
 (0)