Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs for how to query a namespace #148

Closed
yoavnash opened this issue Apr 30, 2021 · 3 comments · Fixed by #154
Closed

Docs for how to query a namespace #148

yoavnash opened this issue Apr 30, 2021 · 3 comments · Fixed by #154

Comments

@yoavnash
Copy link
Member

It seems it's not documented how to query a namespace. For example, how to get a list of all entities like so:

print([e for e in foaf])

Output:

[<OntologyAttribute foaf.nick>, <OntologyAttribute foaf.sha1>, <OntologyAttribute foaf.firstName>, <OntologyAttribute foaf.family_name>, <OntologyAttribute foaf.icqChatID>, <OntologyAttribute foaf.lastName>, <OntologyAttribute foaf.plan>, <OntologyAttribute foaf.name>, <OntologyAttribute foaf.givenname>, <OntologyAttribute foaf.givenName>, <OntologyAttribute foaf.age>, <OntologyAttribute foaf.accountName>, <OntologyAttribute foaf.jabberID>, <OntologyAttribute foaf.surname>, <OntologyAttribute foaf.aimChatID>, <OntologyAttribute foaf.status>, <OntologyAttribute foaf.dnaChecksum>, <OntologyAttribute foaf.birthday>, <OntologyAttribute foaf.geekcode>, <OntologyAttribute foaf.yahooChatID>, <OntologyAttribute foaf.mbox_sha1sum>, <OntologyAttribute foaf.skypeID>, <OntologyAttribute foaf.myersBriggs>, <OntologyAttribute foaf.familyName>, <OntologyAttribute foaf.gender>, <OntologyAttribute foaf.title>, <OntologyAttribute foaf.msnChatID>, <OntologyRelationship foaf.theme>, <OntologyRelationship foaf.img>, <OntologyRelationship foaf.maker>, <OntologyRelationship foaf.currentProject>, <OntologyRelationship foaf.holdsAccount>, <OntologyRelationship foaf.logo>, <OntologyRelationship foaf.workplaceHomepage>, <OntologyRelationship foaf.topic_interest>, <OntologyRelationship foaf.thumbnail>, 
<OntologyRelationship foaf.topic>, <OntologyRelationship foaf.interest>, <OntologyRelationship foaf.member>, <OntologyRelationship foaf.pastProject>, <OntologyRelationship foaf.knows>, <OntologyRelationship foaf.weblog>, <OntologyRelationship foaf.focus>, <OntologyRelationship foaf.workInfoHomepage>, <OntologyRelationship 
foaf.homepage>, <OntologyRelationship foaf.openid>, <OntologyRelationship foaf.schoolHomepage>, <OntologyRelationship foaf.phone>, <OntologyRelationship foaf.page>, <OntologyRelationship foaf.account>, <OntologyRelationship foaf.accountServiceHomepage>, <OntologyRelationship foaf.made>, <OntologyRelationship foaf.primaryTopic>, <OntologyRelationship foaf.depicts>, <OntologyRelationship foaf.tipjar>, <OntologyRelationship foaf.based_near>, <OntologyRelationship foaf.mbox>, <OntologyRelationship foaf.fundedBy>, <OntologyRelationship foaf.depiction>, <OntologyRelationship foaf.publications>, <OntologyClass foaf.Person>, <OntologyClass foaf.Document>, <OntologyClass foaf.Project>, <OntologyClass foaf.OnlineAccount>, <OntologyClass foaf.Group>, <OntologyClass foaf.Organization>, <OntologyClass foaf.Agent>, <OntologyClass foaf.PersonalProfileDocument>, <OntologyClass foaf.LabelProperty>, <OntologyClass foaf.OnlineChatAccount>, <OntologyClass foaf.OnlineEcommerceAccount>, <OntologyClass foaf.OnlineGamingAccount>, <OntologyClass foaf.Image>]
@yoavnash yoavnash changed the title How to query a namespace? Docs for how to query a namespace Apr 30, 2021
@kysrpex
Copy link
Contributor

kysrpex commented May 14, 2021

Agree, actually it is even easier print(list(foaf)). It makes sense to finish PR #559 on osp-core to make this even more natural.

@kysrpex kysrpex self-assigned this May 14, 2021
@kysrpex
Copy link
Contributor

kysrpex commented May 25, 2021

/cib

@create-issue-branch
Copy link
Contributor

Branch 148-Docs_for_how_to_query_a_namespace created!

create-issue-branch bot pushed a commit that referenced this issue May 25, 2021
@kysrpex kysrpex linked a pull request May 25, 2021 that will close this issue
@kysrpex kysrpex added this to the Sprint #3 milestone May 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants