Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
524 views
in Technique[技术] by (71.8m points)

owl - How to import specific classes and object properties from an ontology in Protege?

I want to import some classes in Protege from different ontologies to my ontology. For example, I need the classes foaf:Person, org:Site, vcard:Organization, and many more.

I don't want to create them by myself (and modifying their IRI). When I did import the whole ontology (Schema.org, vCard, FOAF, …), I had many elements that I don't need.

Is there any way to do it?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

— Have you looked at this thread: protege-project.136.n4.nabble.com/…

— I tried to use it, but it didn't work.

There are subtle moments, especially on step 5.

  1. Open your target ontology.

target ontology

  1. Open the source ontology in the same window.

source ontology

  1. Select Refactor > Copy/move/delete axioms:

menu path

  1. Select axiom selection method.

import options

  1. Select signature (i. e. a set set of classes, properties etc.) to import. Do not forget to press >> !

select signature

  1. Now you can preview axioms to be imported.

axioms preview

  1. Select what you want to do:

operation selectio

8-9. Select your target ontology:

existing vs new

target ontology

  1. Voila!

result


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...