我刚刚开始在 arc2 中使用 owl 文件。我有一个这样的猫头鹰文件;
<rdf:RDF xmlns="http://www.semanticweb.org/ozgur/ontologies/2019/9/untitled-ontology-2#"
xml:base="http://www.semanticweb.org/ozgur/ontologies/2019/9/untitled-ontology-2"
xmlns:owl="http://www.w3.org/2002/07/owl#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:uni="http://www.semanticweb.org/ozgur/ontologies/2019/9/untitled-ontology-2#"
xmlns:xml="http://www.w3.org/XML/1998/namespace"
xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#">
<owl:Ontology rdf:about="http://www.semanticweb.org/ozgur/ontologies/2019/9/untitled- ontology-2"/>
<owl:NamedIndividual rdf:about="http://www.semanticweb.org/ozgur/ontologies/2019/9/untitled-ontology-2#Student1">
<rdf:type rdf:resource="http://www.semanticweb.org/ozgur/ontologies/2019/9/untitled-ontology-2#Student"/>
<studies rdf:resource="http://www.semanticweb.org/ozgur/ontologies/2019/9/untitled-ontology-2#CS101"/>
<studies rdf:resource="http://www.semanticweb.org/ozgur/ontologies/2019/9/untitled-ontology-2#M201"/>
<studies rdf:resource="http://www.semanticweb.org/ozgur/ontologies/2019/9/untitled-ontology-2#M204"/>
<first_name rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Josef</first_name>
<last_name rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Baker</last_name>
<studentID rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">266814</studentID>
</owl:NamedIndividual>
如您所见,我有一个“Student1”个人,我想添加新的个人“Student2”,它的属性如研究:“abc”和研究:“def”以及名字和姓氏值。我找到了如图所示的代码;
prefix SEMKNOW: <http://sk.owl#>
INSERT INTO <http://localhost/SEMKNOW.owl>{
<http://sk.owl#C-21> rdf:Type SEMKNOW:ConferencePapers;
SEMKNOW:Title "A semantic knowledge management system for scholarly repositories";
}
但我无法转换我的代码。如果有人可以帮助我,我会很高兴。谢谢。