User:Waldyrious/quickpresets settings.js

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
// See more examples in [[User:MichaelSchoenitzer/quickpresets defaultconf.js]]
// Feedback / questions
// - Empty values [] should be omittable (automatically inferred)
// - Ability to specify narrower queries, e.g. Portuguese people, items with an ORCID ID, etc.
// - What does "defaults" mean, and what could we add other than that?
quick_props = [
	{
		qid: 5,
		name: "Human",
		defaults: [
			{
				name: "Gender",
				pid: 21,
				values: [
					{ name: "male", qid: 6581097 },
					{ name: "female", qid: 6581072 },
				]
			},
			{
				name: "Occupation",
				pid: 106,
				values: [
					{ name: "politican", qid: 82955 },
					{ name: "soccer player", qid: 937857 },
					{ name: "musician", qid: 639669 },
					{ name: "singer", qid: 177220 },
					{ name: "writer", qid: 36180 },
					{ name: "painter", qid: 1028181 },
				]
			},
			{
				name: "Citizenship",
				pid: 27,
				values: [
					{ name: "USA", qid: 30 },
					{ name: "Portugal", qid: 45 },
					{ name: "Cape Verde", qid: 1011 },
				]
			},
			{
				name: "Languages spoken",
				pid: 1412,
				values: [
					{ name: "English", qid: 1860 },
					{ name: "Portuguese", qid: 5146 },
					{ name: "Kabuverdianu", qid: 35963 },
				]
			},
			// Properties without common values
			{ name: "given name",   pid: 735, values: [] },
			{ name: "family name",  pid: 734, values: [] },
			{ name: "residence",    pid: 551, values: [] },
			{ name: "notable work", pid: 800, values: [] },
			{ name: "educated at",  pid:  69, values: [] },
			{ name: "employer",     pid: 108, values: [] },
			// Identifiers
			{ name: "Twitter ID",   pid: 2002, type: "string", values: [] },
			{ name: "Github ID",    pid: 2037, type: "string", values: [] },
			{ name: "Linkedin ID",  pid: 6634, type: "string", values: [] },
			// For academics:
			// - Google Scholar author ID (P1960)
			// - ORCID iD (P496)
			// - Affiliation
			// For musicians: MusicBrainz artist ID (P434)
			// Portuguese people
			// - Portuguese National Library ID (P1005)
			// - writers:  Projecto Vercial author ID (P9053) 
		]
	},
	{
		qid: 7397,
		name: "Software",
		defaults: [
			{
				name: "License",
				pid: 275,
				values: [
					{ name: "ISC", qid: 386474 },
					{ name: "MIT", qid: 334661 },
				]
			},
			{
				name: "Copyright status",
				pid: 6216,
				values: [
					{ name: "copyrighted", qid: 50423863 },
					{ name: "public domain", qid: 19652 },
				]
			},
			// Properties without common values
			{ name: "Website",     pid:  856, type: "string", values: [] },
			{ name: "Repository",  pid: 1324, type: "string", values: [] },
			{ name: "Repology ID", pid: 6931, type: "string", values: [] },
			{ name: "Homebrew ID", pid: 8443, type: "string", values: [] },
		]
	},
	{
		qid: 202444,
		name: "Given name",
		defaults: [
			//{
			//	name: "Native label",
			//	pid: 1705,
			//	type: "string",
			//	values: []
			//},
			{
				name: "Writing system",
				pid: 282,
				values: [
					{ name: "Latin script", qid: 8229 },
				]
			},
		]
	},
	// TODO:
	// - Books
	//   - Open Library ID ()
	// - Songs / albums
	//   - performer (P175)
	//   - MusicBrainz recording ID (P4404)
	//   - MusicBrainz work ID (P435)
	// - Places
	//   - OSM object (P10689)
	//   - OpenStreetMap relation ID (P402)
	//   - Located in administrative
];