René's URL Explorer Experiment


Title: Should setting id_ only set the local part of the ID? · Issue #222 · STIXProject/python-stix · GitHub

Open Graph Title: Should setting id_ only set the local part of the ID? · Issue #222 · STIXProject/python-stix

X Title: Should setting id_ only set the local part of the ID? · Issue #222 · STIXProject/python-stix

Description: Right now, properly setting custom IDs is somewhat counter-intuitive (to me). The python-stix documentation has information on setting ID namespaces [1], which at present boils down to set_id_namespace({"http://MY-NAMESPACE.com" : "myNS"...

Open Graph Description: Right now, properly setting custom IDs is somewhat counter-intuitive (to me). The python-stix documentation has information on setting ID namespaces [1], which at present boils down to set_id_names...

X Description: Right now, properly setting custom IDs is somewhat counter-intuitive (to me). The python-stix documentation has information on setting ID namespaces [1], which at present boils down to set_id_names...

Opengraph URL: https://github.com/STIXProject/python-stix/issues/222

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Should setting id_ only set the local part of the ID?","articleBody":"Right now, properly setting custom IDs is somewhat counter-intuitive (to me).\n\nThe python-stix documentation has information on setting ID namespaces [1], which at present boils down to `set_id_namespace({\"http://MY-NAMESPACE.com\" : \"myNS\"})` which causes `myNS` to be registered as an alias for `http://MY-NAMESPACE.com`.\n\nAfter setting the namespace, IDs currently need to be set with the namespace alias in mind. For example: `sp = STIXPackage(id_='myNS:SomeID')` is required if you want to use `SomeID` instead of an auto-generated ID. However, I think this might trip some people up. I think some people would expect the `id_` kwarg to just set the local part, and that the API would automatically prepend the alias (e.g., `myNS`). For example, I could see people thinking that `sp = STIXPackage(id_='local_part_only')` would create a valid ID because the APIs would \"know\" to prepend the NS alias.\n\nThis issue is to discuss this point of view and, should there be a consensus, possibly modify the implementation of IDs. One outcome could be that if there is not a namespace alias set in the `id_` property, use the ID namespace. If there is a namespace alias set in the `id_` property, use the specified namespace alias.\n\nThoughts?\n\nNote: https://github.com/STIXProject/python-stix/issues/176 might be related\n\n[1] http://stix.readthedocs.org/en/latest/examples/index.html#id-namespaces\n","author":{"url":"https://github.com/MarkDavidson","@type":"Person","name":"MarkDavidson"},"datePublished":"2014-10-27T16:29:04.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/222/python-stix/issues/222"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:54ce19ef-92bf-4103-f56b-7b10af983ddd
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC68A:3476BC:2A5F67D:3B838E7:697105EB
html-safe-nonce4eb1f0eeac67c955268fe01768dce3c6b7d33e74b90d1a4f665db6c0bb8e6ae0
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNjhBOjM0NzZCQzoyQTVGNjdEOjNCODM4RTc6Njk3MTA1RUIiLCJ2aXNpdG9yX2lkIjoiNjU5MDY5ODE1NDM3NjYyNzY5MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac341923597fcee63f26826df61bf48d44d7986d3497ae6d90a2ec734c45a8fe76
hovercard-subject-tagissue:46926973
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/STIXProject/python-stix/222/issue_layout
twitter:imagehttps://opengraph.githubassets.com/b3fd2f2e763ac378e93cd411de240f78c88a5a7ae8d9bbcd145404e8eccf0f3f/STIXProject/python-stix/issues/222
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/b3fd2f2e763ac378e93cd411de240f78c88a5a7ae8d9bbcd145404e8eccf0f3f/STIXProject/python-stix/issues/222
og:image:altRight now, properly setting custom IDs is somewhat counter-intuitive (to me). The python-stix documentation has information on setting ID namespaces [1], which at present boils down to set_id_names...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameMarkDavidson
hostnamegithub.com
expected-hostnamegithub.com
None6d0e7b0d5e294a53c55f49e80755e785182080c6e6a48c9ed353bedddaee69f4
turbo-cache-controlno-preview
go-importgithub.com/STIXProject/python-stix git https://github.com/STIXProject/python-stix.git
octolytics-dimension-user_id2774079
octolytics-dimension-user_loginSTIXProject
octolytics-dimension-repository_id8163746
octolytics-dimension-repository_nwoSTIXProject/python-stix
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id8163746
octolytics-dimension-repository_network_root_nwoSTIXProject/python-stix
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release6d5a3a396bc74e65fd3ef897b0a99a6e489debaa
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/STIXProject/python-stix/issues/222#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FSTIXProject%2Fpython-stix%2Fissues%2F222
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FSTIXProject%2Fpython-stix%2Fissues%2F222
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=STIXProject%2Fpython-stix
Reloadhttps://patch-diff.githubusercontent.com/STIXProject/python-stix/issues/222
Reloadhttps://patch-diff.githubusercontent.com/STIXProject/python-stix/issues/222
Reloadhttps://patch-diff.githubusercontent.com/STIXProject/python-stix/issues/222
STIXProject https://patch-diff.githubusercontent.com/STIXProject
python-stixhttps://patch-diff.githubusercontent.com/STIXProject/python-stix
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2FSTIXProject%2Fpython-stix
Fork 89 https://patch-diff.githubusercontent.com/login?return_to=%2FSTIXProject%2Fpython-stix
Star 246 https://patch-diff.githubusercontent.com/login?return_to=%2FSTIXProject%2Fpython-stix
Code https://patch-diff.githubusercontent.com/STIXProject/python-stix
Issues 26 https://patch-diff.githubusercontent.com/STIXProject/python-stix/issues
Pull requests 0 https://patch-diff.githubusercontent.com/STIXProject/python-stix/pulls
Actions https://patch-diff.githubusercontent.com/STIXProject/python-stix/actions
Projects 0 https://patch-diff.githubusercontent.com/STIXProject/python-stix/projects
Wiki https://patch-diff.githubusercontent.com/STIXProject/python-stix/wiki
Security Uh oh! There was an error while loading. Please reload this page. https://patch-diff.githubusercontent.com/STIXProject/python-stix/security
Please reload this pagehttps://patch-diff.githubusercontent.com/STIXProject/python-stix/issues/222
Insights https://patch-diff.githubusercontent.com/STIXProject/python-stix/pulse
Code https://patch-diff.githubusercontent.com/STIXProject/python-stix
Issues https://patch-diff.githubusercontent.com/STIXProject/python-stix/issues
Pull requests https://patch-diff.githubusercontent.com/STIXProject/python-stix/pulls
Actions https://patch-diff.githubusercontent.com/STIXProject/python-stix/actions
Projects https://patch-diff.githubusercontent.com/STIXProject/python-stix/projects
Wiki https://patch-diff.githubusercontent.com/STIXProject/python-stix/wiki
Security https://patch-diff.githubusercontent.com/STIXProject/python-stix/security
Insights https://patch-diff.githubusercontent.com/STIXProject/python-stix/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/STIXProject/python-stix/issues/222
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/STIXProject/python-stix/issues/222
Should setting id_ only set the local part of the ID?https://patch-diff.githubusercontent.com/STIXProject/python-stix/issues/222#top
https://github.com/MarkDavidson
https://github.com/MarkDavidson
MarkDavidsonhttps://github.com/MarkDavidson
on Oct 27, 2014https://github.com/STIXProject/python-stix/issues/222#issue-46926973
#176https://github.com/STIXProject/python-stix/issues/176
http://stix.readthedocs.org/en/latest/examples/index.html#id-namespaceshttp://stix.readthedocs.org/en/latest/examples/index.html#id-namespaces
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.