Example Java code‌ Sample Clauses

Example Java code‌. This is the main function we used to create a document to be indexed in Solr by querying the DM2E SPARQL endpoint provided by WP2. /** * Given a SPARQL query with at least a ?uri and a ?value variables are binded, * indexes the Documents identified by each match of the ?uri variable, * adding fields equals to each match of the ?field variable and corresponding values, * matched by the ?value variable. * If no matches are found for the ?field variable, the default field is used, if provided. * @param query The SPARQL query * @param conn a connection to a Sesame Repository * @param solrDocs A set of Solr Input Documents to be updated with the new fields * @param defaultField an optional default field * @throws RepositoryException * @throws MalformedQueryException * @throws QueryEvaluationException * @throws MalformedURLException * @throws IOException */ private void indexByQuery(String query, RepositoryConnection conn, HashMap<String, SolrInputDocument> solrDocs, String defaultField) throws RepositoryException, MalformedQueryException, QueryEvaluationException, MalformedURLException, IOException { // Execute the query .... TupleQuery tquery = conn.prepareTupleQuery(QueryLanguage.SPARQL, query); TupleQueryResult res = tquery.evaluate(); int id = 0; // foreach result while (res.hasNext()) { BindingSet bs = xxx.xxxx(); String uri = bs.getBinding("uri").getValue().stringValue(); String field; // if no value has been matched skip ... if (bs.getBinding("value") == null) continue; // if the ?field variable has a match ... if (bs.getBinding("field")!=null) { Value fv = bs.getBinding("field").getValue(); // if the value is a RDF resource we treat it accordingly // by checking for rdf:type and adding a special field if (fv instanceof Resource) { if (fv.stringValue().equals("xxxx://xxxx.xxx/dc/elements/1.1/type")) { field = "topic_ss"; } else { field = truncate(fv.stringValue()) + "_ss"; } } else { field = fv.stringValue() + "_ss"; } // Else if the default filed is provided use it instead ... } else if (defaultField != null){ field = defaultField; } else { return; } Value valval = bs.getBinding("value").getValue(); String val; // If the value is not a RDF resource we skip some unwanted chars if (valval instanceof Resource) { val = valval.stringValue(); } else { val = valval.stringValue().replaceAll("\\[", "").replaceAll("\\]", ""); }
AutoNDA by SimpleDocs

Related to Example Java code‌

  • Drug and Alcohol Testing – Safety-Sensitive Functions A. Employees required to have a Commercial Driver’s License (CDL) are subject to pre-employment, post-accident, random and reasonable suspicion testing in accordance with the U.S. Department of Transportation rules, Coast Guard Regulations (46 CFR Part 16) or the Federal Omnibus Transportation Employee Testing Act of 1991. The testing will be conducted in accordance with current Employer policy.

  • California Labor Code Requirements a. Consultant is aware of the requirements of California Labor Code Sections 1720 et seq. and 1770 et seq., which require the payment of prevailing wage rates and the performance of other requirements on certain “public works” and “maintenance” projects (“Prevailing Wage Laws”). If the services are being performed as part of an applicable “public works” or “maintenance” project, as defined by the Prevailing Wage Laws, and if the total compensation is One Thousand Dollars and Zero Cents ($1,000.00) or more, Consultant agrees to fully comply with such Prevailing Wage Laws. Consultant shall defend, indemnify and hold the City, its officials, officers, employees and agents free and harmless from any claims, liabilities, costs, penalties or interest arising out of any failure or alleged failure to comply with the Prevailing Wage Laws. It shall be mandatory upon the Consultant and all subconsultants to comply with all California Labor Code provisions, which include but are not limited to prevailing wages (Labor Code Sections 1771, 1774 and 1775), employment of apprentices (Labor Code Section 1777.5), certified payroll records (Labor Code Sections 1771.4 and 1776), hours of labor (Labor Code Sections 1813 and 1815) and debarment of contractors and subcontractors (Labor Code Section 1777.1). The requirement to submit certified payroll records directly to the Labor Commissioner under Labor Code section 1771.4 shall not apply to work performed on a public works project that is exempt pursuant to the small project exemption specified in Labor Code Section 1771.4.

  • How to File an Appeal of a Prescription Drug Denial For denials of a prescription drug claim based on our determination that the service was not medically necessary or appropriate, or that the service was experimental or investigational, you may request an appeal without first submitting a request for reconsideration. You or your physician may file a written or verbal prescription drug appeal with our pharmacy benefits manager (PBM). The prescription drug appeal must be submitted to us within one hundred and eighty (180) calendar days of the initial determination letter. You will receive written notification of our determination within thirty (30) calendar days from the receipt of your appeal. How to File an Expedited Appeal Your appeal may require immediate action if a delay in treatment could seriously jeopardize your health or your ability to regain maximum function, or would cause you severe pain. To request an expedited appeal of a denial related to services that have not yet been rendered (a preauthorization review) or for on-going services (a concurrent review), you or your healthcare provider should call: • our Grievance and Appeals Unit; or • our pharmacy benefits manager for a prescription drug appeal. Please see Section 9 for contact information. You will be notified of our decision no later than seventy-two (72) hours after our receipt of the request. You may not request an expedited review of covered healthcare services already received.

  • SWEATFREE CODE OF CONDUCT a. All Contractors contracting for the procurement or laundering of apparel, garments or corresponding accessories, or the procurement of equipment, materials, or supplies, other than procurement related to a public works contract, declare under penalty of perjury that no apparel, garments or corresponding accessories, equipment, materials, or supplies furnished to the state pursuant to the contract have been laundered or produced in whole or in part by sweatshop labor, forced labor, convict labor, indentured labor under penal sanction, abusive forms of child labor or exploitation of children in sweatshop labor, or with the benefit of sweatshop labor, forced labor, convict labor, indentured labor under penal sanction, abusive forms of child labor or exploitation of children in sweatshop labor. The contractor further declares under penalty of perjury that they adhere to the Sweatfree Code of Conduct as set forth on the California Department of Industrial Relations website located at xxx.xxx.xx.xxx, and Public Contract Code Section 6108.

  • DISCLOSURE OF TBS ACCESS CODE TO THIRD PARTY (a) The Account Holder must exercise all care to ensure that the TBS Access Code is not disclosed to any person and shall take all steps to prevent forgery or fraud in connection with the use of his TBS Access Code and/or the operation of the TBS. If the TBS Access Code is disclosed to any person, the Account Holder must forthwith give the Bank written notice thereof, thereupon the Account Holder shall immediately cease to use the TBS Access Code.

  • Dress Code CONTRACTOR shall maintain a dress code for their employee’s with a minimum of shirts, pants, and work shoes/boots, in decent condition, at all times while the work is being performed. In the event the COUNTY determines ID badges are necessary, the COUNTY will provide CONTRACTOR with ID badges and CONTRACTOR agrees to enforce that its employees, whether employed by CONTRACTOR or a subcontractor, wear such ID badge while working on site for the Project/Service.

  • California Labor Code Compliance a. Prevailing Wage laws apply, Subrecipient hereby agrees to pay, or cause its subcontractors to pay, Prevailing Wage rates at all times for all construction, improvements, or modifications to be completed for County under this Contract. Subrecipient herein agrees that Subrecipient shall post, or cause to be posted, a copy of the most current, applicable Prevailing Wage rates at the site where the construction, improvements, or modifications are performed.

  • Training Sub-Type Code There are Sub-Type Categories for each of the three (3) different Training Type Codes. Select one (1) Sub-Type Category code that applies to the training type code you selected. (Select from the chart on pages 10-12.)

  • Training Designation Type Code Select and insert the appropriate training credit designation type code: Code Short Description Long Description (If Applicable) 01 Undergraduate Credit N/A 02 Graduate Credit N/A 03 Continuing Education Unit N/A 04 Post Graduate Credit N/A 05 N/A N/A

  • CFR Part 200 or Federal Provision - Xxxx Anti-Lobbying Amendment - Continued If you answered "No, Vendor does not certify - Lobbying to Report" to the above attribute question, you must download, read, execute, and upload the attachment entitled "Disclosure of Lobbying Activities - Standard Form - LLL", as instructed, to report the lobbying activities you performed or paid others to perform. 2 CFR Part 200 or Federal Provision - Federal Rule Compliance with all applicable standards, orders, or requirements issued under section 306 of the Clean Air Act (42 U.S.C. 1857(h)), section 508 of the Clean Water Act (33 U.S.C. 1368), Executive Order 11738, and Environmental Protection Agency regulations (40 CFR part 15). (Contracts, subcontracts, and subgrants of amounts in excess of $100,000) Pursuant to the above, when federal funds are expended by ESC Region 8 and TIPS Members, ESC Region 8 and TIPS Members requires the proposer certify that in performance of the contracts, subcontracts, and subgrants of amounts in excess of $250,000, the vendor will be in compliance with all applicable standards, orders, or requirements issued under section 306 of the Clean Air Act (42 U.S.C. 1857(h)), section 508 of the Clean Water Act (33 U.S.C. 1368), Executive Order 11738, and Environmental Protection Agency regulations (40 CFR part 15). Does vendor certify compliance? Yes 2 CFR Part 200 or Federal Provision - Procurement of Recovered Materials A non-Federal entity that is a state agency or agency of a political subdivision of a state and its contractors must comply with section 6002 of the Solid Waste Disposal Act, as amended by the Resource Conservation and Recovery Act. The requirements of Section 6002 include: (1) procuring only items designated in guidelines of the Environmental Protection Agency (EPA) at 40 CFR part 247 that contain the highest percentage of recovered materials practicable, consistent with maintaining a satisfactory level of competition, where the purchase price of the item exceeds $10,000 or the value of the quantity acquired during the preceding fiscal year exceeded $10,000; (2) procuring solid waste management services in a manner that maximizes energy and resource recovery; and establishing an affirmative procurement program for procurement of recovered materials identified in the EPA guidelines. Does vendor certify that it is in compliance with these provisions? Yes 2 CFR Part 200 or Federal Provision - Rights to Inventions If the Federal award meets the definition of “funding agreement” under 37 CFR §401.2 (a) and the recipient or subrecipient wishes to enter into a contract with a small business firm or nonprofit organization regarding the substitution of parties, assignment or performance of experimental, developmental, or research work under that “funding agreement,” the recipient or subrecipient must comply with the requirements of 37 CFR Part 401, “Rights to Inventions Made by Nonprofit Organizations and Small Business Firms Under Government Grants, Contracts and Cooperative Agreements,” and any implementing regulations issued by the awarding agency. Pursuant to the above, when the foregoing applies to ESC Region 8 and TIPS Members, Vendor certifies that during the term of an award resulting from this procurement process, Vendor agrees to comply with all applicable requirements as referenced in the Federal rule above. Does vendor certify? Yes

Time is Money Join Law Insider Premium to draft better contracts faster.